[pacman-dev] [PATCH] repo-add; add option to remove existing package files from disk

Allan McRae allan at archlinux.org
Wed May 29 21:55:06 EDT 2013


On 30/05/13 11:32, William Giokas wrote:
> On Thu, May 30, 2013 at 11:28:18AM +1000, Phillip Smith wrote:
>> On 30 May 2013 11:18, Phillip Smith <lists at fukawi2.nl> wrote:
>>> paccache certainly doesn't appear to achieve the same goal. In the
>>> example below, I would expect the pkgrel -1, -3, -4 of alsa-utils and
>>> libassuan-2.0.3-1-x86_64.pkg.tar.xz to be removed.
>>
>> Apologies, I was misusing it. I needed the -c option.
>>
>> Still, this patch enables it to be done in one action when adding the
>> new package(s), and paccache could be run on a schedule to cleanup any
>> mishaps.
> 
> Honestly, this is when I would say to call paccache in your repo-add
> function. As there is no separation between pacman and pacman-contrib
> anymore, it doesn't need any extra deps. Then things could still be done
> in one step while not duplicating code and introducing possible bugs.
> 

One more thing.  I don't want repo-add depending on stuff in contrib.
repo-add gets installed with "make install" but contrib does not.

Allan



More information about the pacman-dev mailing list