On Thu, Feb 10, 2011 at 19:02, PyroPeter <abi1789@xxxxxxxxxxxxxx> wrote: > 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. That does indeed seem to work. Thanks! :-) /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@xxxxxxxxxxxx jabber: magnus@xxxxxxxxxxxx twitter: magthe http://therning.org/magnus