[Rpm-metadata] createrepo/__init__.py

zpavlas at osuosl.org zpavlas at osuosl.org
Mon Nov 12 09:30:15 UTC 2012


 createrepo/__init__.py |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 5663e972e7e10b34e3fc95311bdffb019c1cfdc9
Author: Zdeněk Pavlas <zpavlas at redhat.com>
Date:   Fri Nov 9 13:04:23 2012 +0100

    No baseurl means no baseurl.  BZ 875029

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index f0f4d93..167d384 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
@@ -560,9 +560,7 @@ class MetaDataGenerator:
                         self.callback.log(_("Using data from old metadata for %s")
                                             % pkg)
 
-                    if self.conf.baseurl: # if we have a baseurl set, reset the one
-                                          # in the old pkg
-                        old_po.basepath = self.conf.baseurl
+                    old_po.basepath = self.conf.baseurl # reset baseurl in the old pkg
                     self.primaryfile.write(old_po.xml_dump_primary_metadata())
                     self.flfile.write(old_po.xml_dump_filelists_metadata())
                     self.otherfile.write(old_po.xml_dump_other_metadata())


More information about the Rpm-metadata mailing list