[MacPorts] #55939: reclaim does not support distfile tags
MacPorts
noreply at macports.org
Fri Mar 2 16:31:48 UTC 2018
#55939: reclaim does not support distfile tags
------------------------+--------------------
Reporter: ryandesign | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: base | Version: 2.4.99
Keywords: | Port:
------------------------+--------------------
`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 [browser:macports-base/src/port1.0/portutil.tcl
portutil.tcl]. Take a look at the other places in base that use these
procedures.
--
Ticket URL: <https://trac.macports.org/ticket/55939>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list