[otrs-cvs] UnitTest/bin UnitTestAutoSetup.pl,1.274,1.275

"CVS commits notifications of OTRS.org" <[email protected]> Thu, 27 Jun 2013 14:22:29 +0000
Newsgroups gmane.comp.otrs.cvs
Message-ID <[email protected]>
Comments:
Update of /home/cvs/UnitTest/bin
In directory lancelot:/tmp/cvs-serv491/bin

Modified Files:
	UnitTestAutoSetup.pl 
Log Message:
Fixed wrong handling of force parameter.

Author: ub

Index: UnitTestAutoSetup.pl
===================================================================
RCS file: /home/cvs/UnitTest/bin/UnitTestAutoSetup.pl,v
retrieving revision 1.274
retrieving revision 1.275
diff -2 -u -d -r1.274 -r1.275
--- UnitTestAutoSetup.pl	25 Jun 2013 10:38:10 -0000	1.274
+++ UnitTestAutoSetup.pl	27 Jun 2013 14:22:23 -0000	1.275
@@ -1509,13 +1509,14 @@
             my $Action = $Package->{Upgrade} ? 'upgrade' : 'install';
 
-            # build package manager command
-            my $Command
-                = "su - $UnitTestUser -c \"$Scenario->{PackageManager} -a $Action -p '$Package->{URL}'\"";
-
             # enable force mode
+            my $Force = '';
             if ( $Package->{Force} ) {
-                $Command .= ' -f on';
+                $Force .= ' -f on';
             }
 
+            # build package manager command
+            my $Command
+                = "su - $UnitTestUser -c \"$Scenario->{PackageManager} -a $Action -p '$Package->{URL}' $Force\"";
+
             system($Command) && next SCENARIO;
 
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log