Author: lslezak Date: Tue Oct 5 12:48:01 2010 New Revision: 62535 URL: http://svn.opensuse.org/viewcvs/yast?rev=62535&view=rev Log: - install yast2-online-update-configuration package if needed (bnc#609778) - 2.20.0 Modified: trunk/online-update/VERSION trunk/online-update/package/yast2-online-update.changes trunk/online-update/src/online_update_select.ycp Modified: trunk/online-update/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/online-update/VERSION?rev=62535&r1=62534&r2=62535&view=diff ============================================================================== --- trunk/online-update/VERSION (original) +++ trunk/online-update/VERSION Tue Oct 5 12:48:01 2010 @@ -1 +1 @@ -2.19.2 +2.20.0 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=62535&r1=62534&r2=62535&view=diff ============================================================================== --- trunk/online-update/package/yast2-online-update.changes (original) +++ trunk/online-update/package/yast2-online-update.changes Tue Oct 5 12:48:01 2010 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue Oct 5 10:47:00 UTC 2010 - lslezak@suse.cz + +- install yast2-online-update-configuration package if needed + (bnc#609778) +- 2.20.0 + +------------------------------------------------------------------- Wed Jan 13 18:56:03 CET 2010 - kmachalkova@suse.cz - Adjusted .desktop file(s) to wrap /sbin/yast2/ calls in xdg-su Modified: trunk/online-update/src/online_update_select.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/online-update/src/online_update_select.ycp?rev=62535&r1=62534&r2=62535&view=diff ============================================================================== --- trunk/online-update/src/online_update_select.ycp (original) +++ trunk/online-update/src/online_update_select.ycp Tue Oct 5 12:48:01 2010 @@ -16,6 +16,8 @@ import "Popup"; import "ProductFeatures"; import "Wizard"; + import "PackageSystem"; + import "Report"; // target and source already initialized in online_update.ycp @@ -132,7 +134,21 @@ { any result = nil; if (ret == `online_update_configuration) - result = WFM::CallFunction ("online_update_configuration", []); + { + string required_package = "yast2-online-update-configuration"; + + if (!PackageSystem::Installed( required_package ) && !PackageSystem::CheckAndInstallPackages([required_package]) ) + { + Report::Error( sformat(_("Cannot configure online update repository +without having package %1 installed"), required_package)); + } + else + { + y2milestone("starting online_update_configuration client"); + symbol cfg_result = (symbol)WFM::CallFunction( "online_update_configuration", []); + y2milestone("online_update_configuration result: %1", cfg_result); + } + } else result = WFM::CallFunction ("repositories", [`sw_single_mode]); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org