[yast-commit] r48578 - in /trunk/online-update: VERSION package/yast2-online-update.changes src/OnlineUpdateCallbacks.ycp
Author: lslezak Date: Fri Jun 27 11:23:15 2008 New Revision: 48578 URL: http://svn.opensuse.org/viewcvs/yast?rev=48578&view=rev Log: - adapted to the new patch messages and patch scripts callbacks (bnc#401220) - 2.17.1 Modified: trunk/online-update/VERSION trunk/online-update/package/yast2-online-update.changes trunk/online-update/src/OnlineUpdateCallbacks.ycp Modified: trunk/online-update/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/online-update/VERSION?rev=48578&r1=48577&r2=48578&view=diff ============================================================================== --- trunk/online-update/VERSION (original) +++ trunk/online-update/VERSION Fri Jun 27 11:23:15 2008 @@ -1 +1 @@ -2.17.0 +2.17.1 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=48578&r1=48577&r2=48578&view=diff ============================================================================== --- trunk/online-update/package/yast2-online-update.changes (original) +++ trunk/online-update/package/yast2-online-update.changes Fri Jun 27 11:23:15 2008 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Fri Jun 27 11:22:46 CEST 2008 - lslezak@suse.cz + +- adapted to the new patch messages and patch scripts callbacks + (bnc#401220) +- 2.17.1 + +------------------------------------------------------------------- Tue Jun 17 13:52:44 CEST 2008 - lslezak@suse.cz - use Pkg::SourceSaveAll() instead of Pkg::SourceFinishAll() Modified: trunk/online-update/src/OnlineUpdateCallbacks.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/online-update/src/OnlineUpdateCallbacks.ycp?rev=48578&r1=48577&r2=48578&view=diff ============================================================================== --- trunk/online-update/src/OnlineUpdateCallbacks.ycp (original) +++ trunk/online-update/src/OnlineUpdateCallbacks.ycp Fri Jun 27 11:23:15 2008 @@ -344,9 +344,9 @@ // Script callbacks // a script has been started - global void ScriptStart(string patch_name, string patch_version, string patch_arch, string script_path, boolean installation) + global void ScriptStart(string patch_name, string patch_version, string patch_arch, string script_path) { - y2milestone("ScriptStart: patch_name:%1, patch_version:%2, patch_arch:%3, script:%4, installation:%5", patch_name, patch_version, patch_arch, script_path, installation); + y2milestone("ScriptStart: patch_name:%1, patch_version:%2, patch_arch:%3, script:%4", patch_name, patch_version, patch_arch, script_path); string patch_full_name = PackageCallbacks::FormatPatchName(patch_name, patch_version, patch_arch); if (UI::WidgetExists(`id(`you_patch_progress))) @@ -391,13 +391,15 @@ } // an error has occurred - global void ScriptProblem(string description) + global string ScriptProblem(string description) { y2milestone("ScriptProblem: %1", description); // FIXME: use rather LongError here? Popup::Error(description); last_callback = "ScriptProblem"; + + return "A"; // = Abort, TODO: support also Ignore and Retry } // the script has finished @@ -421,7 +423,7 @@ } // display a message - global void Message(string patch_name, string patch_version, string patch_arch, string message) + global boolean Message(string patch_name, string patch_version, string patch_arch, string message) { string patch_full_name = PackageCallbacks::FormatPatchName(patch_name, patch_version, patch_arch); y2milestone("Message (%1): %2", patch_full_name, message); @@ -435,6 +437,8 @@ // use richtext, the message might be too long for standard popup Popup::LongMessage(patch_full_name + message); last_callback = "Message"; + + return true; // = continue, TODO: use Continue/Cancel dialog } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
lslezak@svn.opensuse.org