[Yum-devel] [PATCH] reposync should lock. BZ 880722

Zdenek Pavlas zpavlas at redhat.com
Fri Dec 7 10:35:20 UTC 2012


> > -        my.repos.setCacheDir(cachedir)
> > +        my.conf.uid = 1 # force locking of user cache
> 
>  This seems hacky, like we should have some API to explicitly say "do
> cachedir locking" ... but, meh conf.uid isn't used for much else
> anyway.

Don't like it either.  IMO doLock() should always lock self.cachedir
(unless we're readonly), but many users won't be happy with that.
Setting non-zero uid forces that.  pushed.


More information about the Yum-devel mailing list