[yast-commit] r54354 - /trunk/packager/src/clients/repositories.ycp
Author: lslezak Date: Wed Dec 31 15:09:47 2008 New Revision: 54354 URL: http://svn.opensuse.org/viewcvs/yast?rev=54354&view=rev Log: - fixed change of a non-existing widget, better service alias to service name conversion Modified: trunk/packager/src/clients/repositories.ycp Modified: trunk/packager/src/clients/repositories.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/packager/src/clients/repositories.ycp?rev=54354&r1=54353&r2=54354&view=diff ============================================================================== --- trunk/packager/src/clients/repositories.ycp (original) +++ trunk/packager/src/clients/repositories.ycp Wed Dec 31 15:09:47 2008 @@ -168,7 +168,8 @@ integer priority = source["priority"]:default_priority; string url = repository_mode ? generalData["url"]:"" : source["url"]:""; - string service_name = Pkg::ServiceGet(source["service"]:"")["name"]:""; + string service_alias = source["service"]:""; + string service_name = service_alias != "" ? Pkg::ServiceGet(service_alias)["name"]:"" : ""; term item = repository_mode ? `item( @@ -318,7 +319,6 @@ UI::ChangeWidget(`id(`name), `Label, name); UI::ChangeWidget(`id(`url), `Label, url); UI::ChangeWidget(`id(`category), `Label, category); - UI::ChangeWidget(`id(`service), `Label, service); } else { @@ -343,7 +343,6 @@ UI::ChangeWidget(`id(`name), `Label, ""); UI::ChangeWidget(`id(`url), `Label, ""); UI::ChangeWidget(`id(`category), `Label, ""); - UI::ChangeWidget(`id(`service), `Label, ""); } else { -- 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