Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54934 - in /trunk/add-on: package/yast2-add-on.changes src/add-on-workflow.ycp
  • From: locilka@xxxxxxxxxxxxxxxx
  • Date: Fri, 23 Jan 2009 12:01:28 -0000
  • Message-id: <E1LQKj2-0000Te-LI@xxxxxxxxxxxxxxxx>
Author: locilka
Date: Fri Jan 23 13:01:28 2009
New Revision: 54934

URL: http://svn.opensuse.org/viewcvs/yast?rev=54934&view=rev
Log:
- Added more logging when a wrong product is found.


Modified:
trunk/add-on/package/yast2-add-on.changes
trunk/add-on/src/add-on-workflow.ycp

Modified: trunk/add-on/package/yast2-add-on.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/add-on/package/yast2-add-on.changes?rev=54934&r1=54933&r2=54934&view=diff
==============================================================================
--- trunk/add-on/package/yast2-add-on.changes (original)
+++ trunk/add-on/package/yast2-add-on.changes Fri Jan 23 13:01:28 2009
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Fri Jan 23 13:00:28 CET 2009 - locilka@xxxxxxx
+
+- Added more logging when a wrong product is found.
+
+-------------------------------------------------------------------
Mon Jan 12 15:12:49 CET 2009 - locilka@xxxxxxx

- Fixed displaying URL and product directory while editing an

Modified: trunk/add-on/src/add-on-workflow.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/add-on/src/add-on-workflow.ycp?rev=54934&r1=54933&r2=54934&view=diff
==============================================================================
--- trunk/add-on/src/add-on-workflow.ycp (original)
+++ trunk/add-on/src/add-on-workflow.ycp Fri Jan 23 13:01:28 2009
@@ -1189,6 +1189,16 @@
UI::ChangeWidget (`id ("product_details"), `Value, rt_description);
}

+/**
+ * Logs wrong product with 'log_this' error and returns 'return_this'.
+ * Added because of bnc #459461
+ */
+string LogWrongProduct (map <string,any> one_product, string log_this, string
return_this) {
+ y2error ("Erroneous product: %1: %2", log_this, one_product);
+
+ return return_this;
+}
+
void RedrawAddOnsOverviewTable () {
list <map <string,any> > all_products = Pkg::ResolvableProperties ("",
`product, "");

@@ -1228,7 +1238,9 @@
products = add (products, `item (
`id (sformat ("product_%1", counter)),
one_product["display_name"]:one_product["name"]:_("Unknown
product"),
-
repository_info["url"]:repository_info["base_urls",0]:_("Unknown URL")
+
repository_info["url"]:repository_info["base_urls",0]:LogWrongProduct (
+ one_product, "Unknown URL", _("Unknown URL")
+ )
));
}
});

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages