[pacman-dev] PM_LOCK

VMiklos vmiklos at frugalware.org
Fri Jun 2 08:55:23 EDT 2006


On Wed, May 31, 2006 at 03:05:06AM +0200, wael at siemens-mobiles.org wrote:
> in lib/libalpm/alpm.h, you define PM_LOCK to "/tmp/pacman.lck", but the
> lock file should depend on config->root, a scenario:
> 
> I have a chroot at /home/chroot where I ran the following:
> pacman -Sy -r /home/chroot xorg gnome gnome-extra kde
> 
> And i want to update and/or install on my real root ( / ), so I run
> pacman -Syu
> 
> but pacman will exit since /tmp/pacman.lck exist, this is wrong, "pacman
> -r /home/chroot" should not lock "pacman -r /" since pacman will not touch
> /var/lib/pacman...

what about this patch?

http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=pacman;a=plain_commitdiff;h=20060602124811-e2957-52eaa234e99575c065732e0bd08228a322e5948d.gz;

udv / greetings,
VMiklos

-- 
Developer of Frugalware Linux, to make things frugal - http://frugalware.org




More information about the pacman-dev mailing list