[Yum-devel] [PATCH] No baseurl means no baseurl. BZ 875029
Zdeněk Pavlas
zpavlas at redhat.com
Fri Nov 9 12:06:17 UTC 2012
---
createrepo/__init__.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
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())
--
1.7.4.4
More information about the Yum-devel
mailing list