apply fix for https://bugzilla.redhat.com/show_bug.cgi?id=527259
authorSeth Vidal <skvidal@fedoraproject.org>
Mon, 5 Oct 2009 20:13:48 +0000 (16:13 -0400)
committerSeth Vidal <skvidal@fedoraproject.org>
Mon, 5 Oct 2009 20:13:48 +0000 (16:13 -0400)
make sure we're not only testing the first pkg. Test all of them until
we find one that is newer.

createrepo/__init__.py

index 4601a1591df267e8b501255880338b400f49f984..77a03ee67ec242cbb6b92a67e980f4ce05f6f206 100644 (file)
@@ -298,8 +298,8 @@ class MetaDataGenerator:
                     self.callback.errorlog(_('cannot get to file: %s') % fn)
                 if os.path.getctime(fn) > self.conf.mdtimestamp:
                     return False
-                else:
-                    return True
+            
+            return True
                 
         return False