[PATCH 2/2] Let checkbox disable updates-testing (#962522)
Brian C. Lane
bcl at redhat.com
Tue May 21 21:42:44 UTC 2013
From: "Brian C. Lane" <bcl at redhat.com>
---
pyanaconda/ui/gui/spokes/source.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index 61b5ae7..17a01da 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -941,11 +941,17 @@ class SourceSpoke(NormalSpoke):
def on_noUpdatesCheckbox_toggled(self, *args):
""" Toggle the enable state of the updates repo
+
+ Before final release this will also toggle the updates-testing repo
"""
if self._noUpdatesCheckbox.get_active():
self.payload.disableRepo("updates")
+ if not constants.isFinal:
+ self.payload.disableRepo("updates-testing")
else:
self.payload.enableRepo("updates")
+ if not constants.isFinal:
+ self.payload.enableRepo("updates-testing")
def on_addRepo_clicked(self, button):
""" Add a new repository
--
1.8.1.4
More information about the anaconda-patches
mailing list