createrepo/__init__.py

[email protected]
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
 createrepo/__init__.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ad8110649baeb8bb9826c9d55be16c023734493e
Author: Seth Vidal <[email protected]>
Date:   Mon Oct 5 16:13:48 2009 -0400

    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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.