Mailinglist Archive: yast-commit (1914 mails)

< Previous Next >
[yast-commit] r58526 - /trunk/yast2/library/control/src/ProductControl.ycp
  • From: kmachalkova@xxxxxxxxxxxxxxxx
  • Date: Fri, 04 Sep 2009 12:24:11 -0000
  • Message-id: <E1MjXps-00059K-0o@xxxxxxxxxxxxxxxx>
Author: kmachalkova
Date: Fri Sep 4 14:24:11 2009
New Revision: 58526

URL: http://svn.opensuse.org/viewcvs/yast?rev=58526&view=rev
Log:
Functions for disabling AC items

Modified:
trunk/yast2/library/control/src/ProductControl.ycp

Modified: trunk/yast2/library/control/src/ProductControl.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/control/src/ProductControl.ycp?rev=58526&r1=58525&r2=58526&view=diff
==============================================================================
--- trunk/yast2/library/control/src/ProductControl.ycp (original)
+++ trunk/yast2/library/control/src/ProductControl.ycp Fri Sep 4 14:24:11 2009
@@ -86,7 +86,7 @@
// List of proposals to disable in the current run
list<string> DisabledProposals = [];

-
+map<string, list <string> > DisabledACItems = $[];
// <--

// Log files for hooks
@@ -192,6 +192,33 @@
return DisabledProposals;
}

+global map<string, list<string> > EnableACItem (string unique_id, string
enable_ac_item) {
+
+ if ( haskey( DisabledACItems, unique_id ) ) {
+ DisabledACItems[unique_id] = filter (string one_ac_item,
DisabledACItems[unique_id]:[], {
+ return (one_ac_item != enable_ac_item);
+ });
+ }
+ else
+ y2error("AC step with id %1 does not exist", unique_id );
+
+ return DisabledACItems;
+}
+
+global map<string, list<string> > DisableACItem (string unique_id, string
disable_ac_item) {
+
+ if ( haskey( DisabledACItems, unique_id) ) {
+ DisabledACItems[unique_id] = (list<string>) union
(DisabledACItems[unique_id]:[], [disable_ac_item]);
+ } else
+ DisabledACItems[unique_id] = [disable_ac_item];
+
+ return DisabledACItems;
+}
+
+global map< string, list <string> > GetDisabledACItems () {
+ return DisabledACItems;
+}
+
/**
* Check if a module is disabled
* @param map module map

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

< Previous Next >
This Thread
  • No further messages