[yast-commit] r52718 - in /trunk/packager: package/yast2-packager.changes src/include/repositories_include.ycp
Author: lslezak Date: Thu Oct 30 09:26:29 2008 New Revision: 52718 URL: http://svn.opensuse.org/viewcvs/yast?rev=52718&view=rev Log: - set non-empty name for new services Modified: trunk/packager/package/yast2-packager.changes trunk/packager/src/include/repositories_include.ycp Modified: trunk/packager/package/yast2-packager.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/package/yast2-packager.changes?rev=52718&r1=52717&r2=52718&view=diff ============================================================================== --- trunk/packager/package/yast2-packager.changes (original) +++ trunk/packager/package/yast2-packager.changes Thu Oct 30 09:26:29 2008 @@ -2,6 +2,7 @@ Thu Oct 30 08:07:11 CET 2008 - lslezak@suse.cz - fixed missing URLs in the repository manager dialog (bnc#439060) +- set non-empty name for new services ------------------------------------------------------------------- Wed Oct 29 15:33:45 CET 2008 - lslezak@suse.cz Modified: trunk/packager/src/include/repositories_include.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/include/repositories_include.ycp?rev=52718&r1=52717&r2=52718&view=diff ============================================================================== --- trunk/packager/src/include/repositories_include.ycp (original) +++ trunk/packager/src/include/repositories_include.ycp Thu Oct 30 09:26:29 2008 @@ -97,9 +97,18 @@ y2milestone("Disabling autorefresh for a CD/DVD service"); } - serviceStatesOut = add(serviceStatesOut, - $["alias":alias, "autorefresh":autorefresh, "enabled":true, "name":preffered_name, "url":url] - ); + // use alias as the name if it's missing + if (preffered_name == nil || preffered_name == "") + { + preffered_name = alias; + } + + map<string,any> new_service = $["alias":alias, "autorefresh":autorefresh, + "enabled":true, "name":preffered_name, "url":url]; + + y2milestone("Added new service: %1", new_service); + + serviceStatesOut = add(serviceStatesOut, new_service); return `ok; } -- 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