Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/modules/yumcfg/kspost.50.yumcfg.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/yumcfg/kspost.50.yumcfg.py')
-rw-r--r--modules/yumcfg/kspost.50.yumcfg.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/yumcfg/kspost.50.yumcfg.py b/modules/yumcfg/kspost.50.yumcfg.py
index 6685913..cda5273 100644
--- a/modules/yumcfg/kspost.50.yumcfg.py
+++ b/modules/yumcfg/kspost.50.yumcfg.py
@@ -11,6 +11,8 @@ import ooblib
addrepos = []
excludes = set()
+farch = ooblib.read_config('global', 'fedora_arch').strip()
+
# read in repos
for var in os.environ:
if not var.startswith("CFG_yumcfg__addrepo"):
@@ -28,7 +30,7 @@ for for_excludes, name, url in addrepos:
data = fd.read()
fd.close()
fd = GzipFile(fileobj=StringIO(data))
- ooblib.add_packages_from_xml(fd, excludes)
+ ooblib.add_packages_from_xml(fd, excludes, farch)
# write shell code to generate yum repo files
for for_excludes, name, url in addrepos: