LATEST_LINK not in index
pav at FreeBSD.org
Mon Mar 30 13:54:30 PDT 2009
Dominic Fandrey píše v so 28. 03. 2009 v 19:23 +0100:
> I'm working on a binary package upgrade tool that gets all required
> information from the INDEX file downloadable from the package
> repositories. This means you do not need a local copy of the ports
> tree to use it.
> The only information required and missing is the LATEST_LINK.
> Normally this is easily done by stripping the package name of
> the version, but some ports define a proprietary LATEST_LINK
> to avoid conflicts. This leads to the following problem, my
> program has to do some guessing and in these cases it fails:
> # pkg_upgrade firefox3
> # pkg_upgrade firefox
> It either matches none or more than one port. I could build
> some guessing logic, but the real solution would be to have
> the LATEST_LINK name in the index file. Is there any chance
> a LATEST_LINK column will be added if I file a PR?
Upgrades are easy. Look up @comment ORIGIN line in +CONTENTS file of the
port being upgraded, then look up this value in second column of INDEX
Pav Lucistnik <pav at oook.cz>
<pav at FreeBSD.org>
It's now using GIFs instead of JPEGs. This is similar to replacing
triangular wheels with round ones.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 195 bytes
Desc: Toto je =?UTF-8?Q?digit=C3=A1ln=C4=9B?=
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20090330/f5750689/attachment.pgp
More information about the freebsd-ports