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@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