#55939 closed defect (fixed)
reclaim does not support distfile tags
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | raimue (Rainer Müller) |
---|---|---|---|
Priority: | Normal | Milestone: | MacPorts 2.4.4 |
Component: | base | Version: | 2.4.99 |
Keywords: | Cc: | ||
Port: |
Description
port reclaim
does not support tags -- the labels that can be added after a colon to distfiles
and master_sites
values to group them.
A port might specify its distfiles as:
distfiles foo.tar.gz:foosite \ bar.tar.gz:barsite
This means "download the file 'foo.tar.gz' from the site with the tag 'foosite' and the file 'bar.tar.gz' from the site with the tag 'barsite'". Such a port would then specify its master_sites
as:
master_sites https://foo.example.com/fooproject/:foosite \ https://bar.example.com/barproject/:barsite
This would cause MacPorts to download the files https://foo.example.com/fooproject/foo.tar.gz and https://bar.example.com/barproject/bar.tar.gz.
port reclaim
is not aware of this feature; it just uses each element of distfiles
literally. So it checks the disk for the files "foo.tar.gz:foosite" and "bar.tar.gz:barsite", which of course don't exist.
Implementing support for tags requires using the procedures getdistsite
and getdisttag
from portutil.tcl. Take a look at the other places in base that use these procedures.
Change History (4)
comment:1 Changed 7 years ago by raimue (Rainer Müller)
Owner: | set to raimue |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:2 Changed 7 years ago by raimue (Rainer Müller)
Milestone: | → MacPorts 2.5.0 |
---|
comment:3 Changed 7 years ago by raimue (Rainer Müller)
comment:4 Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)
Milestone: | MacPorts 2.5.0 → MacPorts 2.4.4 |
---|
In 3ad97625cc57d26e333dcdf06dc0d932f002056a/macports-base: