#788 closed defect (fixed)
extract.sufx not set if you use both distfiles and use_bzip2
Reported by: | gwright@… | Owned by: | fkr@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 1.0 |
Keywords: | Cc: | ||
Port: |
Description
If you have to specify the distfile along with use_bzip2, the extract suffix is not set.
An example:
The port name is ghc The version is 6.0.1 The file to be fetched is ghc-6.0.1-src.tar.bz2
using
use_bzip2 distfiles ${name}-${version}-src${extract.sufx}
results in an attempt to fetch ghc-6.0.1-src.tar.gz. use_zip similarly fails in this case.
Attachments (2)
Change History (6)
comment:1 Changed 21 years ago by fkr@…
Owner: | changed from darwinports-bugs@… to fkr@… |
---|
comment:2 Changed 21 years ago by tp62@…
Changed 20 years ago by tp62@…
Attachment: | patch-portfetch.2.tcl added |
---|
Correct patch for portfetch.tcl
comment:3 Changed 20 years ago by tp62@…
attachments.isobsolete: | 0 → 1 |
---|
comment:4 Changed 20 years ago by jkh@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Committed 2nd version of fix, looks good. Thanks!
Note: See
TracTickets for help on using
tickets.
Pretty self-explanatory - I define fix_extract_suffix as the handling procedure for use_bzip2 and use_zip. When they are 'set', I check and set extract.suffix as needed. Also, removed code from suffix procedure, which is now unnecessary. Diff: