Mailinglist Archive: yast-commit (535 mails)

< Previous Next >
[yast-commit] r41656 - in /branches/SuSE-SLE-10-SP1-Branch/add-on-creator: VERSION package/yast2-add-on-creator.changes src/AddOnCreator.ycp
  • From: jsuchome@xxxxxxxxxxxxxxxx
  • Date: Tue, 30 Oct 2007 21:22:28 -0000
  • Message-id: <20071030212228.792B737543@xxxxxxxxxxxxxxxx>
Author: jsuchome
Date: Tue Oct 30 22:22:28 2007
New Revision: 41656

URL: http://svn.opensuse.org/viewcvs/yast?rev=41656&view=rev
Log:
- create patterns with correct key ordering (#328816)
- after pattern import, show also keys without value (#329738)
- 2.13.26


Modified:
branches/SuSE-SLE-10-SP1-Branch/add-on-creator/VERSION

branches/SuSE-SLE-10-SP1-Branch/add-on-creator/package/yast2-add-on-creator.changes
branches/SuSE-SLE-10-SP1-Branch/add-on-creator/src/AddOnCreator.ycp

Modified: branches/SuSE-SLE-10-SP1-Branch/add-on-creator/VERSION
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP1-Branch/add-on-creator/VERSION?rev=41656&r1=41655&r2=41656&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP1-Branch/add-on-creator/VERSION (original)
+++ branches/SuSE-SLE-10-SP1-Branch/add-on-creator/VERSION Tue Oct 30 22:22:28
2007
@@ -1 +1 @@
-2.13.25
+2.13.26

Modified:
branches/SuSE-SLE-10-SP1-Branch/add-on-creator/package/yast2-add-on-creator.changes
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP1-Branch/add-on-creator/package/yast2-add-on-creator.changes?rev=41656&r1=41655&r2=41656&view=diff
==============================================================================
---
branches/SuSE-SLE-10-SP1-Branch/add-on-creator/package/yast2-add-on-creator.changes
(original)
+++
branches/SuSE-SLE-10-SP1-Branch/add-on-creator/package/yast2-add-on-creator.changes
Tue Oct 30 22:22:28 2007
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Tue Oct 30 22:16:18 CET 2007 - jsuchome@xxxxxxx
+
+- create patterns with correct key ordering (#328816)
+- after pattern import, show also keys without value (#329738)
+- 2.13.26
+
+-------------------------------------------------------------------
Wed Sep 5 12:53:26 CEST 2007 - jsuchome@xxxxxxx

- enable deleting of pattern keys (#297195)

Modified: branches/SuSE-SLE-10-SP1-Branch/add-on-creator/src/AddOnCreator.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP1-Branch/add-on-creator/src/AddOnCreator.ycp?rev=41656&r1=41655&r2=41656&view=diff
==============================================================================
--- branches/SuSE-SLE-10-SP1-Branch/add-on-creator/src/AddOnCreator.ycp
(original)
+++ branches/SuSE-SLE-10-SP1-Branch/add-on-creator/src/AddOnCreator.ycp Tue Oct
30 22:22:28 2007
@@ -259,7 +259,7 @@


// desctiption of pattern keys
-global map pattern_descr = $[
+global map<string,map> pattern_descr = $[
"name" : $[
"internal" : true,
],
@@ -812,6 +812,15 @@
else
ret[key] = val;
});
+ foreach (string key, map descr, pattern_descr, {
+ if (!haskey (ret, key) && !descr["internal"]:false)
+ {
+ y2debug ("adding empty key '%1'...", key);
+ // do not add default values - maybe imported pattern
+ // ignored them intentionally
+ ret[key] = "";
+ }
+ });
return ret;
}

@@ -1412,7 +1421,10 @@
if (filename == "")
return;
names = add (names, filename);
- string file = "";
+ string file = sformat ("=Ver: %1\n\n=Pat: %2\n",
+ pattern["Ver"]:pattern_descr["Ver","defval"]:"",
+ pattern["Pat"]:"");
+ pattern = remove (remove (pattern, "Ver"), "Pat");
foreach (string key, any val, (map<string,any>) pattern, {
map descr = pattern_descr[key]:$[];
// substring (key,0,3) is because of Des.lang, Sum.lang and Cat.lang

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

< Previous Next >
This Thread
  • No further messages