Author: juhliarik Date: Thu Apr 16 15:20:36 2009 New Revision: 56815 URL: http://svn.opensuse.org/viewcvs/yast?rev=56815&view=rev Log: added fix for commandline interface Modified: branches/tmp/SLE-11-SP1-Stash/bootloader/package/yast2-bootloader.changes branches/tmp/SLE-11-SP1-Stash/bootloader/src/clients/bootloader.ycp Modified: branches/tmp/SLE-11-SP1-Stash/bootloader/package/yast2-bootloader.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/SLE-11-SP1-Stash/bootloader/package/yast2-bootloader.changes?rev=56815&r1=56814&r2=56815&view=diff ============================================================================== --- branches/tmp/SLE-11-SP1-Stash/bootloader/package/yast2-bootloader.changes (original) +++ branches/tmp/SLE-11-SP1-Stash/bootloader/package/yast2-bootloader.changes Thu Apr 16 15:20:36 2009 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Thu Apr 16 15:19:37 CEST 2009 - juhliarik@suse.cz + +- added fix for commandline interface (bnc#479069) + +------------------------------------------------------------------- Thu Feb 12 14:57:16 CET 2009 - juhliarik@suse.de - added fix for problem with missing error message about using boot Modified: branches/tmp/SLE-11-SP1-Stash/bootloader/src/clients/bootloader.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/SLE-11-SP1-Stash/bootloader/src/clients/bootloader.ycp?rev=56815&r1=56814&r2=56815&view=diff ============================================================================== --- branches/tmp/SLE-11-SP1-Stash/bootloader/src/clients/bootloader.ycp (original) +++ branches/tmp/SLE-11-SP1-Stash/bootloader/src/clients/bootloader.ycp Thu Apr 16 15:20:36 2009 @@ -73,6 +73,7 @@ while (i < size(BootCommon::sections)) { if (BootCommon::sections[i, "name"]:"" == section) { BootCommon::sections[i, key] = value; + BootCommon::sections[i, "__changed"] = true; return true; } i = i + 1; @@ -138,6 +139,8 @@ * @return boolean true on success */ define boolean BootloaderAddHandler (map options) ``{ + if (! CommandLine::Interactive()) + CommandLine::Error(_("Add option is available only in commandline interactive mode")); string section = (string)(options["section"]:nil); if (section == nil) { @@ -217,7 +220,7 @@ "add" : $[ "handler" : BootloaderAddHandler, // command line help text for add action - "help" : _("Add a new section"), + "help" : _("Add a new section - please use interactive mode"), ], "print" : $[ "handler" : BootloaderPrintHandler, @@ -259,7 +262,6 @@ if (.noio == WFM::Args (i) || ".noio" == WFM::Args (i)) { skip_io = true; - BootCommon::save_on_finish = false; } i = i + 1; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org