[yast-commit] r42061 - /trunk/installation/src/clients/inst_upgrade_urls.ycp
Author: locilka
Date: Wed Nov 14 16:30:53 2007
New Revision: 42061
URL: http://svn.opensuse.org/viewcvs/yast?rev=42061&view=rev
Log:
- Evaluating Pkg-builtin calls in inst_upgrade_urls (#331625).
Modified:
trunk/installation/src/clients/inst_upgrade_urls.ycp
Modified: trunk/installation/src/clients/inst_upgrade_urls.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/src/clients/inst_upgrade_urls.ycp?rev=42061&r1=42060&r2=42061&view=diff
==============================================================================
--- trunk/installation/src/clients/inst_upgrade_urls.ycp (original)
+++ trunk/installation/src/clients/inst_upgrade_urls.ycp Wed Nov 14 16:30:53 2007
@@ -14,6 +14,7 @@
import "NetworkService";
import "Popup";
import "AddOnProduct";
+ import "Report";
textdomain "installation";
@@ -529,9 +530,35 @@
boolean repo_refresh = Pkg::SourceRefreshNow (new_id);
y2milestone ("Repository refreshed: %1", repo_refresh);
+ if (repo_refresh != true) {
+ Report::Error (sformat (
+ // TRANSLATORS: error report
+ // %1 is replaced with repo-name, %2 with repo-URL
+ _("An error ocured when refreshing repository
+Name: %1
+URL: %2"),
+ repo_name,
+ one_url
+ ));
+ return;
+ }
+
boolean repo_enable = Pkg::SourceSetEnabled (new_id, true);
y2milestone ("Repository enabled: %1", repo_enable);
+ if (repo_enable != true) {
+ Report::Error (sformat (
+ // TRANSLATORS: error report
+ // %1 is replaced with repo-name, %2 with repo-URL
+ _("An error ocured when enabling repository
+Name: %1
+URL: %2"),
+ repo_name,
+ one_url
+ ));
+ return;
+ }
+
AddOnProduct::Integrate (new_id);
map
participants (1)
-
locilka@svn.opensuse.org