Re: [Yum-devel] [PATCH] use reget=check_timestamp when downloading repomd.xml

2012-06-22 Thread James Antill
On Fri, 2012-06-22 at 13:40 +0200, Zdeněk Pavlas wrote: > This is not significantly faster than always downloading the > whole file (repomd.xml is typically about 3kB), we just save > the bandwidth. > > With reget on, urlgrabber does not touch the local file > on (most of) failures hence no revert

Re: [Yum-devel] [PATCH] implement reget=check_timestamp

2012-06-22 Thread James Antill
On Fri, 2012-06-22 at 12:02 +0200, Zdeněk Pavlas wrote: > --- > urlgrabber/grabber.py | 28 +--- > 1 files changed, 17 insertions(+), 11 deletions(-) > > diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py > index 071146c..3127b48 100644 > --- a/urlgrabber/grabber

[Yum-devel] [PATCH] use reget=check_timestamp when downloading repomd.xml

2012-06-22 Thread Zdeněk Pavlas
This is not significantly faster than always downloading the whole file (repomd.xml is typically about 3kB), we just save the bandwidth. With reget on, urlgrabber does not touch the local file on (most of) failures hence no reverting is needed. Won't work with older urlgrabber which raises NotImp

[Yum-devel] [PATCH] implement reget=check_timestamp

2012-06-22 Thread Zdeněk Pavlas
--- urlgrabber/grabber.py | 28 +--- 1 files changed, 17 insertions(+), 11 deletions(-) diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py index 071146c..3127b48 100644 --- a/urlgrabber/grabber.py +++ b/urlgrabber/grabber.py @@ -107,10 +107,8 @@ GENERAL ARGUMENTS