aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiktor w brodlo <wiktor@brodlo.net>2011-07-07 18:02:05 +0000
committerwiktor w brodlo <wiktor@brodlo.net>2011-07-07 18:02:05 +0000
commit8c5ea20841f3fbb5eba8502f8552ec50e495ec4c (patch)
tree5c9cdb06adda91a27a85d30ebc28a74b712c97b4
parentStore mirrors (diff)
downloadanaconda-8c5ea20841f3fbb5eba8502f8552ec50e495ec4c.tar.gz
anaconda-8c5ea20841f3fbb5eba8502f8552ec50e495ec4c.tar.bz2
anaconda-8c5ea20841f3fbb5eba8502f8552ec50e495ec4c.zip
Store sync mirrors
-rwxr-xr-xanaconda1
-rw-r--r--iw/mirrorselect-sync_gui.py4
2 files changed, 5 insertions, 0 deletions
diff --git a/anaconda b/anaconda
index 5ee3567..6c8fb37 100755
--- a/anaconda
+++ b/anaconda
@@ -489,6 +489,7 @@ class Anaconda(object):
self.mediaDevice = None
self.methodstr = None
self.mirrors = []
+ self.mirrors_sync = []
self._network = None
self._platform = None
self.profile = None
diff --git a/iw/mirrorselect-sync_gui.py b/iw/mirrorselect-sync_gui.py
index 15a6bb5..3fbb4cc 100644
--- a/iw/mirrorselect-sync_gui.py
+++ b/iw/mirrorselect-sync_gui.py
@@ -37,6 +37,9 @@ _ = lambda x: gettext.ldgettext("anaconda", x)
class MirrorselectSyncWindow(InstallWindow):
def getNext(self):
+ for button in self.buttons:
+ if button.get_property("active"):
+ self.anaconda.mirrors_sync.append(button.get_property("label"))
return None
def getScreen(self, anaconda):
@@ -69,5 +72,6 @@ class MirrorselectSyncWindow(InstallWindow):
self.table = self.xml.get_widget("mirrors_table")
ms.addMirrors(self.table, self.mirrors, mirrors_parsed)
+ self.buttons = ms.buttons
return self.align