From: Seth Vidal Date: Mon, 5 Oct 2009 20:13:48 +0000 (-0400) Subject: apply fix for https://bugzilla.redhat.com/show_bug.cgi?id=527259 X-Git-Tag: upstream/0.9.9~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad8110649baeb8bb9826c9d55be16c023734493e;p=tools%2Fcreaterepo.git apply fix for https://bugzilla.redhat.com/show_bug.cgi?id=527259 make sure we're not only testing the first pkg. Test all of them until we find one that is newer. --- diff --git a/createrepo/__init__.py b/createrepo/__init__.py index 4601a15..77a03ee 100644 --- a/createrepo/__init__.py +++ b/createrepo/__init__.py @@ -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