Re: [Yum-devel] [PATCH 2/2] Preload packages from user cachedirs

2012-09-10 Thread James Antill
On Mon, 2012-09-10 at 18:57 +0200, tim.laurid...@gmail.com wrote: > On Mon, Sep 10, 2012 at 3:51 PM, Zdeněk Pavlas wrote: [...] > > +st = misc.stat_f(user) > > +if st and st.st_size == po.size: > > +try: > > +

Re: [Yum-devel] [PATCH 2/2] Preload packages from user cachedirs

2012-09-10 Thread tim.laurid...@gmail.com
On Mon, Sep 10, 2012 at 3:51 PM, Zdeněk Pavlas wrote: > --- > yum/__init__.py | 19 +++ > 1 files changed, 19 insertions(+), 0 deletions(-) > > diff --git a/yum/__init__.py b/yum/__init__.py > index d53db6d..dd56399 100644 > --- a/yum/__init__.py > +++ b/yum/__init__.py > @@ -4

Re: [Yum-devel] yum, yum-cron & background downloading

2012-09-10 Thread James Antill
On Mon, 2012-09-10 at 15:51 +0200, Zdeněk Pavlas wrote: > Just an idea.. Yum-cron can download updates to user cachedir without > holding the /var/run/yum.pid lock. 'yum update' then just preloads > RPMs from the user cachedir. Yeh, this is what I'd suggested to Nick (download to a user dir. and

Re: [Yum-devel] Where does this come from ?

2012-09-10 Thread James Antill
On Sat, 2012-09-08 at 08:51 +0200, tim.laurid...@gmail.com wrote: > I have allready fixed it upstream in yumex and it looks like pk have been > fixed also :) > but it would be nice if you don't back port it to F17, for a while Yeh, I discussed it with Seth on Friday and did the change in yum too

[Yum-devel] [PATCH 1/2] Find user cachedirs when running as root

2012-09-10 Thread Zdeněk Pavlas
--- yum/__init__.py | 11 +-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/yum/__init__.py b/yum/__init__.py index 198dc6d..d53db6d 100644 --- a/yum/__init__.py +++ b/yum/__init__.py @@ -6248,12 +6248,19 @@ much more problems). :param suffix: suffix to attach t

[Yum-devel] [PATCH 2/2] Preload packages from user cachedirs

2012-09-10 Thread Zdeněk Pavlas
--- yum/__init__.py | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/yum/__init__.py b/yum/__init__.py index d53db6d..dd56399 100644 --- a/yum/__init__.py +++ b/yum/__init__.py @@ -44,6 +44,7 @@ import logging import logging.config import operator impo

[Yum-devel] yum, yum-cron & background downloading

2012-09-10 Thread Zdeněk Pavlas
Just an idea.. Yum-cron can download updates to user cachedir without holding the /var/run/yum.pid lock. 'yum update' then just preloads RPMs from the user cachedir. - Must preload before 'predownload' hook, otherwise presto etc would try to download it anyway. - Source is user-writable, do an