pkgobj.packagesize is now an int, not a str.
This commit is contained in:
parent
59ce91800b
commit
176f7ea5ef
@ -1,6 +1,7 @@
|
||||
* Tue May 15 2007 Jesse Keating <jkeating@redhat.com>
|
||||
- Don't quote ISO label, not running mkisofs in shell
|
||||
- Apply sparc patches (spot)
|
||||
- Fix cached downloads comparing correctly
|
||||
|
||||
* Fri Apr 06 2007 Jesse Keating <jkeating@redhat.com>
|
||||
- Fix comments in config file
|
||||
|
@ -283,7 +283,7 @@ class Gather(yum.YumBase):
|
||||
local = os.path.basename(remote)
|
||||
local = os.path.join(self.config.get('default', 'cachedir'), local)
|
||||
if (os.path.exists(local) and
|
||||
str(os.path.getsize(local)) == pkg.packagesize):
|
||||
os.path.getsize(local) == pkg.packagesize):
|
||||
|
||||
if not self.config.has_option('default', 'quiet'):
|
||||
self.logger.info("%s already exists and appears to be complete" % local)
|
||||
|
Loading…
Reference in New Issue
Block a user