diff options
author | Daniel Drake <dsd@laptop.org> | 2012-10-02 20:36:33 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2012-10-02 21:09:24 (GMT) |
commit | 7a981b054d0f81028eba5713c8babab2ad289f5c (patch) | |
tree | 6af2a0a608bf63679448e0526bd6312e6bfb2983 /modules/yumcfg/kspost.50.yumcfg.py | |
parent | b75761585bc09154583348c2df5aa6232276a184 (diff) |
Use arch-aware exclude list for yumcfg too
Use arch considerations in yumcfg like the repos module.
This involved promoting fedora_arch to be a global option.
Diffstat (limited to 'modules/yumcfg/kspost.50.yumcfg.py')
-rw-r--r-- | modules/yumcfg/kspost.50.yumcfg.py | 4 |
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: |