[yast-commit] r51768 - in /trunk/packager/src: clients/repositories.ycp include/repositories_include.ycp
Author: lslezak Date: Wed Oct 1 18:40:39 2008 New Revision: 51768 URL: http://svn.opensuse.org/viewcvs/yast?rev=51768&view=rev Log: - display new added services Modified: trunk/packager/src/clients/repositories.ycp trunk/packager/src/include/repositories_include.ycp Modified: trunk/packager/src/clients/repositories.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/clients/repositories.ycp?rev=51768&r1=51767&r2=51768&view=diff ============================================================================== --- trunk/packager/src/clients/repositories.ycp (original) +++ trunk/packager/src/clients/repositories.ycp Wed Oct 1 18:40:39 2008 @@ -745,6 +745,7 @@ string _msg1 = _("Unable to save changes to the repository configuration."); string details = Pkg::LastError(); + y2milestone("LastError: %1", details); // popup message part 2 followed by other info string _msg2 = details != "" ? (_("Details:") + "\n" + details) : ""; Modified: trunk/packager/src/include/repositories_include.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/include/repositories_include.ycp?rev=51768&r1=51767&r2=51768&view=diff ============================================================================== --- trunk/packager/src/include/repositories_include.ycp (original) +++ trunk/packager/src/include/repositories_include.ycp Wed Oct 1 18:40:39 2008 @@ -84,6 +84,20 @@ } Pkg::ServiceAdd(alias, url); + + boolean autorefresh = true; + string schema = tolower(substring(url, 0, 3)); + + if (schema == "cd:" || schema == "dvd") + { + autorefresh = false; + y2milestone("Disabling autorefresh for a CD/DVD service"); + } + + serviceStatesOut = add(serviceStatesOut, + $["alias":alias, "autorefresh":autorefresh, "enabled":true, "name":preffered_name, "url":url] + ); + 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