pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Sorting problem with pkg_chk -b



On Sat, Aug 23, 2014 at 09:32:55AM +0200, Alan Barrett wrote:
> I'd suggest fixing it by adding a "sort" sub-command to
> pkg_admin(8), to sort a list of version numbers, but perhaps
> somebody else can see how to use some existing pkg_admin
> sub-commands to achieve the desired result.

Create a temporary directory, touch foo.tgz for any package foo and run
PKG_PATH=$MYTMP pkg_admin findbest foopattern. Extract base name from
the resulting URL.

Joerg


Home | Main Index | Thread Index | Old Index