[master][PATCH] Prevent tb during software selection. (#959710)

Samantha N. Bueno sbueno+anaconda at redhat.com
Mon Jun 3 19:10:05 UTC 2013


Side note: though there are several people reporting this issue
in the bug, I've thus far been unable to reproduce it--and therefore,
unable to test out the fix (though it's so small/simple that I am pretty
certain this should fix it).

====

If environmentid doesn't exist, don't attempt to operate on it,
otherwise a tb occurs.
---
 pyanaconda/packaging/yumpayload.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 2ffc5af..e7a3cdf 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -1116,6 +1116,9 @@ reposdir=%s
         if not groups:
             return []
 
+        if not environmentid:
+            return []
+
         with _yum_lock:
             if not groups.has_environment(environmentid):
                 raise NoSuchGroup(environmentid)
-- 
1.7.11.7



More information about the anaconda-patches mailing list