[Rpm-metadata] createrepo/merge.py

skvidal at osuosl.org skvidal at osuosl.org
Tue Feb 3 22:55:22 UTC 2009


 createrepo/merge.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 769e26f6a4b4989280e32bdc403ef6f8679219f0
Author: Seth Vidal <skvidal at fedoraproject.org>
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


More information about the Rpm-metadata mailing list