Author: jsuchome Date: Wed Apr 22 13:07:37 2009 New Revision: 56905 URL: http://svn.opensuse.org/viewcvs/yast?rev=56905&view=rev Log: - new check for online update source (bnc#459527) - offer registration if online update source not found (bnc#459527) - 2.18.2 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=56905&r1=56904&r2=56905&view=diff ============================================================================== --- trunk/online-update/VERSION (original) +++ trunk/online-update/VERSION Wed Apr 22 13:07:37 2009 @@ -1 +1 @@ -2.18.1 +2.18.2 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=56905&r1=56904&r2=56905&view=diff ============================================================================== --- trunk/online-update/package/yast2-online-update.changes (original) +++ trunk/online-update/package/yast2-online-update.changes Wed Apr 22 13:07:37 2009 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue Apr 21 21:31:52 CEST 2009 - jsuchome@suse.cz + +- new check for online update source (bnc#459527) +- offer registration if online update source not found (bnc#459527) +- 2.18.2 + +------------------------------------------------------------------- Mon Mar 23 15:41:08 CET 2009 - jsuchome@suse.cz - do not reset the user locks (bnc#483648) Modified: trunk/online-update/src/online_update.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/online-update/src/online_update.ycp?rev=56905&r1=56904&r2=56905&view=diff ============================================================================== --- trunk/online-update/src/online_update.ycp (original) +++ trunk/online-update/src/online_update.ycp Wed Apr 22 13:07:37 2009 @@ -80,24 +80,29 @@ Progress::NextStage (); - if (!OnlineUpdate::cd_update) // for CD for cd update was not initialized yet + if (!OnlineUpdate::cd_update) // CD for cd update was not initialized yet { boolean is_available = false; - // check if there is any patch for installation - foreach (map patch, Pkg::ResolvableProperties ("", `patch, ""), { - if (patch["status"]:`none == `available) + foreach (map source, Pkg::SourceEditGet (), { + integer srcid = source["SrcId"]:-1; + map data = Pkg::SourceGeneralData (srcid); + y2internal ("data source map: %1", data); + if (data["is_update_repo"]:false) { is_available = true; break; } }); - // continue/cancel message - if (!is_available && Popup::YesNo (_("No active update repository available. -Exit Online Update now? -"))) + // yes/no message + if (!is_available && Popup::YesNo (_("No update repository +configured yet. Run configuration workflow now?"))) { - Wizard::CloseDialog(); - return `abort; + any res = WFM::CallFunction ("online_update_configuration", []); + if (res != `next && res != `finish) + { + Wizard::CloseDialog(); + return `abort; + } } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org