Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Request Tracker: Commit

rt branch, 4.0/test-dependencies-conclusion-with-install, updated. rt-4.0.5-62-gdb53742

 

 

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded


trs at bestpractical

Apr 25, 2012, 6:25 AM

Post #1 of 1 (150 views)
Permalink
rt branch, 4.0/test-dependencies-conclusion-with-install, updated. rt-4.0.5-62-gdb53742

The branch, 4.0/test-dependencies-conclusion-with-install has been updated
via db53742112f697ea86c8857620f1997299496ffe (commit)
from d84d60270c6d7f1a3aa76829a86ec730ce3b61b1 (commit)

Summary of changes:
sbin/rt-test-dependencies.in | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit db53742112f697ea86c8857620f1997299496ffe
Author: Thomas Sibley <trs [at] bestpractical>
Date: Wed Apr 25 09:23:07 2012 -0400

Reliably negate --install when automatically re-running rt-test-dependencies

The --install option might be spelled -i or any number of other ways
thanks to getopt. Instead of trying to fish for all the variations,
make the flag negatable and negate it as the last arg.

diff --git a/sbin/rt-test-dependencies.in b/sbin/rt-test-dependencies.in
index 0ddab2e..313fc35 100755
--- a/sbin/rt-test-dependencies.in
+++ b/sbin/rt-test-dependencies.in
@@ -59,7 +59,7 @@ my %deps;
my @orig_argv = @ARGV;
GetOptions(
\%args, 'v|verbose',
- 'install', 'with-MYSQL',
+ 'install!', 'with-MYSQL',
'with-POSTGRESQL|with-pg|with-pgsql', 'with-SQLITE',
'with-ORACLE', 'with-FASTCGI',
'with-MODPERL1', 'with-MODPERL2',
@@ -404,7 +404,7 @@ foreach my $type (sort grep $args{$_}, keys %args) {
}

if ( $args{'install'} && keys %Missing_By_Type ) {
- exec($0, grep { $_ ne '--install' } @orig_argv );
+ exec($0, @orig_argv, '--no-install');
}
else {
conclude(%Missing_By_Type);

-----------------------------------------------------------------------
_______________________________________________
Rt-commit mailing list
Rt-commit [at] lists
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-commit

Request Tracker commit RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.