[yast-commit] r46234 - in /trunk/online-update: VERSION package/yast2-online-update.changes src/online_update.ycp
Author: jsuchome Date: Tue Apr 8 15:24:55 2008 New Revision: 46234 URL: http://svn.opensuse.org/viewcvs/yast?rev=46234&view=rev Log: - enable selecting CD URL for Patch CD (fate#303475) - 2.16.10 Modified: trunk/online-update/VERSION trunk/online-update/package/yast2-online-update.changes trunk/online-update/src/online_update.ycp Modified: trunk/online-update/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/online-update/VERSION?rev=46234&r1=46233&r2=46234&view=diff ============================================================================== --- trunk/online-update/VERSION (original) +++ trunk/online-update/VERSION Tue Apr 8 15:24:55 2008 @@ -1 +1 @@ -2.16.9 +2.16.10 Modified: trunk/online-update/package/yast2-online-update.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/online-update/package/yast2-online-update.changes?rev=46234&r1=46233&r2=46234&view=diff ============================================================================== --- trunk/online-update/package/yast2-online-update.changes (original) +++ trunk/online-update/package/yast2-online-update.changes Tue Apr 8 15:24:55 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue Apr 8 13:56:58 CEST 2008 - jsuchome@suse.cz + +- enable selecting CD URL for Patch CD (fate#303475) +- 2.16.10 + +------------------------------------------------------------------- Wed Apr 2 16:48:59 CEST 2008 - lslezak@suse.cz - adapted to the new callback registration scheme (fate#302296) Modified: trunk/online-update/src/online_update.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/online-update/src/online_update.ycp?rev=46234&r1=46233&r2=46234&view=diff ============================================================================== --- trunk/online-update/src/online_update.ycp (original) +++ trunk/online-update/src/online_update.ycp Tue Apr 8 15:24:55 2008 @@ -215,6 +215,14 @@ */ define boolean CDUpdateHandler (map options ) { OnlineUpdate::cd_update = true; + if (options["cd_url"]:"" != "") + { + OnlineUpdate::cd_url = options["cd_url"]:""; + } + if (options["cd_directory"]:"" != "") + { + OnlineUpdate::cd_directory = options["cd_directory"]:""; + } OnlineUpdateSequence (); return true; } @@ -231,23 +239,36 @@ // the command line description map map cmdline = $[ "id" : "online_update", - // translators: command line help text + // command line help text "help" : _("Online Update module"), "guihandler" : OnlineUpdateSequence, "actions" : $[ "cd_update" :$[ "handler" : CDUpdateHandler, - // translators: command line help text for cd_update action + // command line help text for cd_update action "help" : _("Start Patch CD Update") ], "simple_mode" : $[ "handler" : SimpleModeHandler, - // translators: command line help text for simple_mode action + // command line help text for simple_mode action "help" : _("Use simple Package Selector") ], ], + "options" : $[ + "cd_url" :$[ + // command line help text for cd_url option + "help" : sformat(_("URL for Patch CD (default value is '%1')"), + OnlineUpdate::cd_url), + "type" : "string" + ], + "cd_directory" :$[ + // command line help text for cd_directory option + "help" : sformat(_("Directory for patch data on Patch CD (default value is '%1')"), OnlineUpdate::cd_directory), + "type" : "string" + ], + ], "mappings" : $[ - "cd_update" : [], + "cd_update" : [ "cd_url", "cd_directory"], "simple_mode" : [], ] ]; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jsuchome@svn.opensuse.org