[arch-general] A repo-add replacement?

PyroPeter abi1789 at googlemail.com
Thu Feb 10 12:33:07 EST 2011

On 02/09/2011 05:05 PM, Magnus Therning wrote:
> I've noticied that repo-add will blindly overwrite the entry of an
> already added package with whatever you point it to.  Even if the
> existing entry is for a version that is newer.  It basically means
> that "repo-add repo.db.tar.gz *.pkg.tar.xz" doesn't work that well :-(
> Is there some other tool for building a a repo db that doesn't follow
> my instructions so blindly? ;-)

I solved this with a bit of find and sort.

 > repo-add repo.db.tar.gz `find . -name "*.pkg.tar.gz" | sort`

Regards, PyroPeter
freenode/pyropeter                                         ETAOIN SHRDLU

More information about the arch-general mailing list