[PATCH master and f18-beta-branch] Make language groups work again (#873865)
Jesse Keating
jkeating at redhat.com
Tue Nov 6 21:00:24 UTC 2012
We have to potentially unmangle a lang value from say es_ES.UTF-8 down
to just "es" in order to find the group within comps.
---
pyanaconda/packaging/yumpayload.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 97f0c8e..831ce28 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -918,7 +918,13 @@ reposdir=%s
if yum_groups:
with _yum_lock:
- groups = [g.groupid for g in yum_groups.get_groups() if g.langonly == lang]
+ groups = [g.groupid for g in yum_groups.get_groups() if
+ g.langonly == lang]
+ # Try to use an unmangled lang value
+ if not groups:
+ shortlang = lang.split('_')[0]
+ groups = [g.groupid for g in yum_groups.get_groups() if
+ g.langonly == shortlang]
return groups
--
1.7.11.4
More information about the anaconda-patches
mailing list