From 176f7ea5efd5b78afe5991f9f7c67c92005f9558 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 15 May 2007 13:29:30 -0400 Subject: [PATCH] pkgobj.packagesize is now an int, not a str. --- Changelog | 1 + pypungi/gather.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 64989734..1bae69c2 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,7 @@ * Tue May 15 2007 Jesse Keating - 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 - Fix comments in config file diff --git a/pypungi/gather.py b/pypungi/gather.py index 57cb7a16..701bce33 100755 --- a/pypungi/gather.py +++ b/pypungi/gather.py @@ -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)