Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54549 - /trunk/add-on/src/add-on-workflow.ycp
  • From: locilka@xxxxxxxxxxxxxxxx
  • Date: Mon, 12 Jan 2009 14:16:22 -0000
  • Message-id: <E1LMNaY-0007g8-Qf@xxxxxxxxxxxxxxxx>
Author: locilka
Date: Mon Jan 12 15:16:22 2009
New Revision: 54549

URL: http://svn.opensuse.org/viewcvs/yast?rev=54549&view=rev
Log:
- Fixed displaying URL and product directory while editing an
already stored and opened AutoYaST configuration.


Modified:
trunk/add-on/src/add-on-workflow.ycp

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=54549&r1=54548&r2=54549&view=diff
==============================================================================
--- trunk/add-on/src/add-on-workflow.ycp (original)
+++ trunk/add-on/src/add-on-workflow.ycp Mon Jan 12 15:16:22 2009
@@ -822,8 +822,19 @@

integer index = -1;
list items = maplist (map<string,any> product,
AddOnProduct::add_on_products, {
+ y2milestone ("%1", product);
+
index = index + 1;
- map data = Pkg::SourceGeneralData (product["media"]:-1);
+ map data = $[];
+
+ // BNC #464162, In AytoYaST, there is no media nr. yet
+ if (haskey (product, "media") && product["media"]:-1 > -1) {
+ data = Pkg::SourceGeneralData (product["media"]:-1);
+ } else {
+ data = product;
+ if (haskey (data, "media_url")) data["url"] = data["media_url"]:"";
+ }
+
// placeholder for unknown path
string dir = data["product_dir"]:_("Unknown");
if (dir == "")

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

< Previous Next >
This Thread
  • No further messages