On Fri, 2011-01-14 at 10:52 -0500, James Antill wrote: > --- > yum/__init__.py | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/yum/__init__.py b/yum/__init__.py > index 8fd0710..fca6ab4 100644 > --- a/yum/__init__.py > +++ b/yum/__init__.py > @@ -1674,8 +1674,11 @@ class YumBase(depsolve.Depsolve): > def doLock(self, lockfile = YUM_PID_FILE): > """perform the yum locking, raise yum-based exceptions, not > OSErrors""" > > - # if we're not root then lock the cache > if self.conf.uid != 0: > + # If we are a user, assume we are using the root cache ... so > don't > + # bother locking. > + if self.conf.cache: > + return > root = self.conf.cachedir > # Don't want <cachedir>/var/run/yum.pid ... just: > <cachedir>/yum.pid > lockfile = os.path.basename(lockfile)
ACK -sv _______________________________________________ Yum-devel mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/yum-devel
