[yast-commit] r62533 - in /trunk/packager: VERSION package/yast2-packager.changes src/clients/sw_single.ycp
Author: lslezak Date: Tue Oct 5 12:46:33 2010 New Revision: 62533 URL: http://svn.opensuse.org/viewcvs/yast?rev=62533&view=rev Log: - install yast2-online-update-configuration package if needed (bnc#609778) - 2.20.1 Modified: trunk/packager/VERSION trunk/packager/package/yast2-packager.changes trunk/packager/src/clients/sw_single.ycp Modified: trunk/packager/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/VERSION?rev=62533&r1=62532&r2=62533&view=diff ============================================================================== --- trunk/packager/VERSION (original) +++ trunk/packager/VERSION Tue Oct 5 12:46:33 2010 @@ -1 +1 @@ -2.20.0 +2.20.1 Modified: trunk/packager/package/yast2-packager.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/package/yast2-packager.changes?rev=62533&r1=62532&r2=62533&view=diff ============================================================================== --- trunk/packager/package/yast2-packager.changes (original) +++ trunk/packager/package/yast2-packager.changes Tue Oct 5 12:46:33 2010 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue Oct 5 10:45:54 UTC 2010 - lslezak@suse.cz + +- install yast2-online-update-configuration package if needed + (bnc#609778) +- 2.20.1 + +------------------------------------------------------------------- Fri Sep 10 12:23:08 UTC 2010 - lslezak@suse.cz - make "Medium #" more translation friendly (bnc#612977), Modified: trunk/packager/src/clients/sw_single.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/clients/sw_single.ycp?rev=62533&r1=62532&r2=62533&view=diff ============================================================================== --- trunk/packager/src/clients/sw_single.ycp (original) +++ trunk/packager/src/clients/sw_single.ycp Tue Oct 5 12:46:33 2010 @@ -522,7 +522,19 @@ } else if (result == `online_update_configuration) { - symbol online_result = (symbol)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 + { + symbol cfg_result = (symbol)WFM::CallFunction( "online_update_configuration", []); + y2milestone("online_update_configuration result: %1", cfg_result); + } force_restart = true; } else if (result == `webpin) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
lslezak@svn2.opensuse.org