[pacman-dev] trustdb locking issues and snippets from the apt changelog

Dan McGee dpmcgee at gmail.com
Fri Apr 29 18:41:33 EDT 2011


On Fri, Apr 29, 2011 at 5:11 PM, Dan McGee <dpmcgee at gmail.com> wrote:
> On Sun, Apr 24, 2011 at 8:25 AM, Allan McRae <allan at archlinux.org> wrote:
>> The main issue here is that gpg(me) creates a lock file in the keyrings home
>> directory whenever it uses a keyring.  Our keyring directory only has write
>> permissions for the root user and thus when pacman is not being run as root
>> (such as the "pacman -Qip <pkg>" case), it can not create a lock file.

And now for our other "competition", yum. Here is how they work around
this problem:
http://yum.baseurl.org/gitweb?p=yum.git;a=commitdiff;h=3f0d169e7ee

Also of interest is their auto key import deal:
http://yum.baseurl.org/gitweb?p=yum.git;a=commitdiff;h=751146bf73d

-Dan


More information about the pacman-dev mailing list