diff options
author | 2007-11-26 03:21:44 +0000 | |
---|---|---|
committer | 2007-11-26 03:21:44 +0000 | |
commit | 6a6a5cb92706dc38b967cce1e65f001caddfe81b (patch) | |
tree | d179c2b456fc03f0dda7fc06e8a41638cbc1c28f | |
parent | forgot to update the changelog. (diff) | |
download | gli-6a6a5cb92706dc38b967cce1e65f001caddfe81b.tar.gz gli-6a6a5cb92706dc38b967cce1e65f001caddfe81b.tar.bz2 gli-6a6a5cb92706dc38b967cce1e65f001caddfe81b.zip |
adding commmand-line option for advanced mode which allows full functionality.
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/gli/trunk@1876 f8877401-5920-0410-a79b-8e2d7e04ca0d
-rwxr-xr-x | src/fe/dialog/gli-dialog.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/fe/dialog/gli-dialog.py b/src/fe/dialog/gli-dialog.py index d0b4898..83c734e 100755 --- a/src/fe/dialog/gli-dialog.py +++ b/src/fe/dialog/gli-dialog.py @@ -79,11 +79,14 @@ Press OK to continue""") def ask_networkless(self): networkless_string = _(u"Do you want to do a networkless installation? This will limit the customizability of your install due to the limitations of the LiveCD. For example, choosing networkless will set your installation stage, portage snapshot, and limit your extra packages selections. NOTE: It is easily possible to do a networkless installation on a machine with an active Internet connection; in fact this may result in the fastest installations for many users.") #Change the Yes/No buttons - #self._d.add_persistent_args(["--yes-label", _(u"Networkless")]) - #self._d.add_persistent_args(["--no-label", _(u"Internet enabled")]) - #if self._d.yesno(networkless_string, width=70, height=20) == self._DLG_YES: + self._d.add_persistent_args(["--yes-label", _(u"Networkless")]) + self._d.add_persistent_args(["--no-label", _(u"Internet enabled")]) + if self.advanced_mode: + if self._d.yesno(networkless_string, width=70, height=20) == self._DLG_NO: + self.networkless = False + return + self.networkless = True - # try: self._install_profile.set_grp_install(None, True, None) self._install_profile.set_install_stage(None, "3", None) self._install_profile.set_dynamic_stage3(None, True, None) @@ -93,10 +96,6 @@ Press OK to continue""") self._install_profile.set_kernel_source_pkg(None, "livecd-kernel", None) self._install_profile.set_cron_daemon_pkg(None, "vixie-cron", None) self._install_profile.set_logging_daemon_pkg(None,"syslog-ng", None) - # except: - # self._d.msgbox(_(u"ERROR: Could not set networkless information in the profile")) - #else: - # self.networkless = False def ask_load_profile(self): #Reset the Yes/No labels. @@ -2105,7 +2104,9 @@ if __name__ == '__main__': #d = dialog.Dialog() gli = GLIDialog() - + if '-a' in sys.argv or '--advanced' in sys.argv: #special mode shhh don't tell anybody! + gli.advanced_mode = True + gli.show_welcome_screen() gli.ask_load_profile() #gli.ask_advanced_mode() -- Disabled. Standard mode now forced. |