Mailinglist Archive: yast-commit (1914 mails)

< Previous Next >
[yast-commit] r58561 - /trunk/network/src/clients/firewall_stage1_proposal.ycp
  • From: kmachalkova@xxxxxxxxxxxxxxxx
  • Date: Mon, 07 Sep 2009 12:18:45 -0000
  • Message-id: <E1MkdBF-0006ZD-Kv@xxxxxxxxxxxxxxxx>
Author: kmachalkova
Date: Mon Sep 7 14:18:45 2009
New Revision: 58561

URL: http://svn.opensuse.org/viewcvs/yast?rev=58561&view=rev
Log:
disable appropriate 2nd stage steps if fw conf.
is changed in 1st already

Modified:
trunk/network/src/clients/firewall_stage1_proposal.ycp

Modified: trunk/network/src/clients/firewall_stage1_proposal.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/network/src/clients/firewall_stage1_proposal.ycp?rev=58561&r1=58560&r2=58561&view=diff
==============================================================================
--- trunk/network/src/clients/firewall_stage1_proposal.ycp (original)
+++ trunk/network/src/clients/firewall_stage1_proposal.ycp Mon Sep 7 14:18:45
2009
@@ -29,6 +29,7 @@
textdomain "network";

import "PackagesProposal";
+ import "ProductControl";
import "ProductFeatures";
import "SuSEFirewall4Network";
import "SuSEFirewallProposal";
@@ -113,6 +114,14 @@
SuSEFirewall4Network::SetSshEnabled1stStage( false );
}
SuSEFirewallProposal::SetChangedByUser(true);
+
+ //Disable one of the AC steps (see control.$product.xml for appropriate
unique IDs)
+ if ( ProductControl::GetUseAutomaticConfiguration() )
+ ProductControl::DisableACItem("ac_2", "firewall");
+ //or subproposal (if 2nd stage is non-automatic)
+ else
+ ProductControl::DisableSubProposal("network_continue", "firewall");
+
ret = $[ "workflow_sequence" : `next ];
}
else if ( func == "Description" )

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

< Previous Next >
This Thread
  • No further messages