pkgobj.packagesize is now an int, not a str.

This commit is contained in:
Jesse Keating 2007-05-15 13:29:30 -04:00 committed by Jesse Keating
parent 59ce91800b
commit 176f7ea5ef
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
* Tue May 15 2007 Jesse Keating <jkeating@redhat.com> * Tue May 15 2007 Jesse Keating <jkeating@redhat.com>
- Don't quote ISO label, not running mkisofs in shell - Don't quote ISO label, not running mkisofs in shell
- Apply sparc patches (spot) - Apply sparc patches (spot)
- Fix cached downloads comparing correctly
* Fri Apr 06 2007 Jesse Keating <jkeating@redhat.com> * Fri Apr 06 2007 Jesse Keating <jkeating@redhat.com>
- Fix comments in config file - Fix comments in config file

View File

@ -283,7 +283,7 @@ class Gather(yum.YumBase):
local = os.path.basename(remote) local = os.path.basename(remote)
local = os.path.join(self.config.get('default', 'cachedir'), local) local = os.path.join(self.config.get('default', 'cachedir'), local)
if (os.path.exists(local) and 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'): if not self.config.has_option('default', 'quiet'):
self.logger.info("%s already exists and appears to be complete" % local) self.logger.info("%s already exists and appears to be complete" % local)