[arch-general] A repo-add replacement?
Magnus Therning
magnus at therning.org
Fri Feb 11 03:31:31 EST 2011
On Thu, Feb 10, 2011 at 19:02, PyroPeter <abi1789 at googlemail.com> 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 at therning.org jabber: magnus at therning.org
twitter: magthe http://therning.org/magnus
More information about the arch-general
mailing list