From c8e8f436b5c5bab24db55af55354de92a8aceed8 Mon Sep 17 00:00:00 2001
From: Jesse Keating <jkeating at redhat dot com>
Date: Fri, 25 May 2007 18:50:37 -0400
Subject: [PATCH] Remove leftover size comparison code snippit.

---
 Changelog         | 1 +
 pypungi/gather.py | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Changelog b/Changelog
index 482eef7c..3a69186a 100644
--- a/Changelog
+++ b/Changelog
@@ -1,5 +1,6 @@
 * Fri May 25 2007 Jesse Keating <jkeating@redhat.com>
 - Handle the cdsize variable correctly
+- More fixes for cached download stuff
 
 * Thu May 24 2007 Jesse Keating <jkeating@redhat.com>
 - Use a package checksum to verify cached download
diff --git a/pypungi/gather.py b/pypungi/gather.py
index 52a5f034..63ec7d78 100755
--- a/pypungi/gather.py
+++ b/pypungi/gather.py
@@ -368,7 +368,7 @@ class Gather(yum.YumBase):
 
                 if not self.config.has_option('default', 'quiet'):
                     self.logger.info("%s already exists and appears to be complete" % local)
-                if os.path.exists(os.path.join(pkgdir, os.path.basename(remote))) and self.verifyCachePkg(pkg, os.path.join(pkgdir, os.path.basename(remote))) == pkg.packagesize:
+                if os.path.exists(os.path.join(pkgdir, os.path.basename(remote))) and self.verifyCachePkg(pkg, os.path.join(pkgdir, os.path.basename(remote))):
                     if not self.config.has_option('default', 'quiet'):
                         self.logger.info("%s already exists in tree and appears to be complete" % local)
                 else: