Author: locilka Date: Mon Feb 23 16:41:13 2009 New Revision: 55686 URL: http://svn.opensuse.org/viewcvs/yast?rev=55686&view=rev Log: - Offering to configure network if remote repositories are used during upgrade (inst_upgrade_urls). Setup can be safely skipped and comes from the Online Repositopries (bnc #478024). - 2.17.54 Modified: branches/SuSE-Code-11-Branch/installation/VERSION branches/SuSE-Code-11-Branch/installation/package/yast2-installation.changes branches/SuSE-Code-11-Branch/installation/src/clients/inst_upgrade_urls.ycp Modified: branches/SuSE-Code-11-Branch/installation/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/installation/VERSION?rev=55686&r1=55685&r2=55686&view=diff ============================================================================== --- branches/SuSE-Code-11-Branch/installation/VERSION (original) +++ branches/SuSE-Code-11-Branch/installation/VERSION Mon Feb 23 16:41:13 2009 @@ -1 +1 @@ -2.17.53 +2.17.54 Modified: branches/SuSE-Code-11-Branch/installation/package/yast2-installation.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/installation/package/yast2-installation.changes?rev=55686&r1=55685&r2=55686&view=diff ============================================================================== --- branches/SuSE-Code-11-Branch/installation/package/yast2-installation.changes (original) +++ branches/SuSE-Code-11-Branch/installation/package/yast2-installation.changes Mon Feb 23 16:41:13 2009 @@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Mon Feb 23 16:36:56 CET 2009 - locilka@suse.cz + +- Offering to configure network if remote repositories are used + during upgrade (inst_upgrade_urls). Setup can be safely skipped + and comes from the Online Repositopries (bnc #478024). +- 2.17.54 + +------------------------------------------------------------------- Fri Feb 20 20:40:09 CET 2009 - locilka@suse.cz - save network configuration also for IPv6 only (bnc#477917) Modified: branches/SuSE-Code-11-Branch/installation/src/clients/inst_upgrade_urls.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-Branch/installation/src/clients/inst_upgrade_urls.ycp?rev=55686&r1=55685&r2=55686&view=diff ============================================================================== --- branches/SuSE-Code-11-Branch/installation/src/clients/inst_upgrade_urls.ycp (original) +++ branches/SuSE-Code-11-Branch/installation/src/clients/inst_upgrade_urls.ycp Mon Feb 23 16:41:13 2009 @@ -778,6 +778,14 @@ }); } + boolean SourceIsRemote (string url) { + if (regexpmatch (url, "^cd://")) return false; + if (regexpmatch (url, "^dvd://")) return false; + if (regexpmatch (url, "^disk://")) return false; + + return true; + } + symbol AddOrRemoveSources () { list <integer> sources_to_remove = []; list <string> sources_to_add = []; @@ -790,10 +798,16 @@ // bnc #400823 do_not_remove = Pkg::SourceGetCurrent(false)[0]:0; + boolean some_sources_are_remote = false; + foreach (map one_source, urls, { string url = one_source["url"]:""; string id = one_source["id"]:""; + if (SourceIsRemote (url)) { + some_sources_are_remote = true; + } + id_to_url[id] = url; // bnc #400823 @@ -825,7 +839,15 @@ SetAddRemoveSourcesUI(); } - // Remote repositories need network + // BNC #478024: Remote repositories need a running network + if ((size (sources_to_add) > 0) && ! NetworkRunning()) { + y2milestone ("No network is running, trying inst_network_check fallback"); + any ret = WFM::CallFunction ("inst_network_check", []); + y2milestone ("Called inst_network_check returned: %1", ret); + } + + // Remote repositories without running network are registered + // as disabled if ((size (sources_to_add) > 0) && ! NetworkRunning()) { y2warning ("Network is not running, sources will be added in DISABLED state"); sources_to_add_disabled = (list <string>) union (sources_to_add_disabled, sources_to_add); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org