aboutsummaryrefslogtreecommitdiff
path: root/iw
diff options
context:
space:
mode:
authorwiktor w brodlo <wiktor@brodlo.net>2011-07-08 13:49:24 +0000
committerwiktor w brodlo <wiktor@brodlo.net>2011-07-08 13:49:24 +0000
commite79eb78ccd31c5423e7712a9c1835fdc5b88440f (patch)
treeceec7355f6443cdc40127a21d431ca901b92216d /iw
parentgentoo/utils.py: unmask os-prober (diff)
downloadanaconda-e79eb78ccd31c5423e7712a9c1835fdc5b88440f.tar.gz
anaconda-e79eb78ccd31c5423e7712a9c1835fdc5b88440f.tar.bz2
anaconda-e79eb78ccd31c5423e7712a9c1835fdc5b88440f.zip
Write /etc/make.conf
Diffstat (limited to 'iw')
-rw-r--r--iw/use_gui.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/iw/use_gui.py b/iw/use_gui.py
index 8fcb199..b3bf64b 100644
--- a/iw/use_gui.py
+++ b/iw/use_gui.py
@@ -37,7 +37,22 @@ import gettext
_ = lambda x: gettext.ldgettext("anaconda", x)
class UseWindow(InstallWindow):
+
+ buttons = []
+ use_profile = []
+
def getNext(self):
+ use = []
+ for button in self.buttons:
+ if button.get_property("active"):
+ use.append(button.get_property("label"))
+
+ for flag in use:
+ if flag not in use_profile: # flag enabled by user, disabled by profile
+ self.anaconda.use_flags.append(flag)
+ for flag in use_profile:
+ if flag not in use: # flag is disabled by user, enabled by profile
+ self.anaconda.use_flags.append("-"+flag)
return None
def getScreen(self, anaconda):
@@ -85,6 +100,8 @@ class UseWindow(InstallWindow):
table.attach(cb, 0, 1, rows, rows+1, gtk.FILL)
table.attach(l, 1, 2, rows, rows+1)
+
+ self.buttons.append(cb)
self.use_profile = use_enabled