[arch-general] A repo-add replacement?
PyroPeter
abi1789 at googlemail.com
Thu Feb 10 14:02:06 EST 2011
On 02/10/2011 07:03 PM, Magnus Therning wrote:
>>> repo-add repo.db.tar.gz `find . -name "*.pkg.tar.gz" | sort`
>
> That is in fact broken, because it sorts just like 'ls *':
>
> % ls *.pkg.tar.gz
> foo-1.2.3.1-1.pkg.tar.gz foo-1.2.3-1.pkg.tar.gz
> % find . -name \*.pkg.tar.gz|sort
> ./foo-1.2.3.1-1.pkg.tar.gz
> ./foo-1.2.3-1.pkg.tar.gz
>
> /M
It turns out GNU sort has a switch for sorting version numbers :-P
$ find . -name \*.pkg.tar.gz | sort -V
should work.
Regards, PyroPeter
--
freenode/pyropeter ETAOIN SHRDLU
More information about the arch-general
mailing list