createrepo/merge.py

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

New commits:
commit 769e26f6a4b4989280e32bdc403ef6f8679219f0
Author: Seth Vidal <[email protected]>
Date:   Tue Feb 3 17:54:32 2009 -0500

    some fixes and to make it work on rhel5/python2.4

diff --git a/createrepo/merge.py b/createrepo/merge.py
index d2997b7..d4b8359 100644
--- a/createrepo/merge.py
+++ b/createrepo/merge.py
@@ -34,7 +34,7 @@ import tempfile
 # excludes?
 
 
-class RepoMergeBase():
+class RepoMergeBase:
     def __init__(self, repolist=[], yumbase=None, mdconf=None, mdbase_class=None ):
         self.repolist = repolist
         self.outputdir = '%s/merged_repo' % os.getcwd()
@@ -44,7 +44,7 @@ class RepoMergeBase():
             self.mdconf = createrepo.MetaDataConfig()
         else:
             self.mdconf = mdconf
-        if not mdbase_class
+        if not mdbase_class:
             self.mdbase_class = createrepo.MetaDataGenerator
         else:
             self.mdbase_class = mdbase_class
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.