[PATCH] Only display the addon separator if there's a reason to.

Chris Lumens clumens at redhat.com
Mon Dec 16 18:47:24 UTC 2013


---
 pyanaconda/ui/gui/spokes/software.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/software.py b/pyanaconda/ui/gui/spokes/software.py
index 473e0c2..4fbd16c 100644
--- a/pyanaconda/ui/gui/spokes/software.py
+++ b/pyanaconda/ui/gui/spokes/software.py
@@ -347,11 +347,16 @@ class SoftwareSelectionSpoke(NormalSpoke):
             # state will be used. Otherwise, the add-on will be selected if it is a default
             # for this environment.
 
+            addSep = len(self._environmentAddons[self.environment][0]) > 0 and \
+                     len(self._environmentAddons[self.environment][1]) > 0
+
             for grp in self._environmentAddons[self.environment][0]:
                 self._addAddon(grp)
 
-            # This marks a separator in the view.
-            self._addonStore.append([False, "", "", True])
+            # This marks a separator in the view - only add it if there's both environment
+            # specific and generic addons.
+            if addSep:
+                self._addonStore.append([False, "", "", True])
 
             for grp in self._environmentAddons[self.environment][1]:
                 self._addAddon(grp)
-- 
1.8.3.1



More information about the anaconda-patches mailing list