]> git.donarmstrong.com Git - wannabuild.git/commitdiff
use non-priv mode with simulate
authorAndreas Barth <aba@not.so.argh.org>
Wed, 30 Mar 2011 21:57:26 +0000 (21:57 +0000)
committerAndreas Barth <aba@not.so.argh.org>
Wed, 30 Mar 2011 21:57:26 +0000 (21:57 +0000)
bin/wanna-build

index ddea1db6e460f7f0ba3fcaec2e9b0707cc721165..ffdbcfc531004ae811d5ea1e2468f6f47aa87832 100755 (executable)
@@ -285,7 +285,7 @@ if ($distribution eq 'any-unpriv') {
 
 my $schema_suffix = '';
 $recorduser //= (not -t and $user//"" =~ /^buildd_/);
 
 my $schema_suffix = '';
 $recorduser //= (not -t and $user//"" =~ /^buildd_/);
-if (isin( $op_mode, qw(list info)) && $distribution !~ /security/ && !$recorduser && !($privmode)) {
+if ((isin( $op_mode, qw(list info)) && $distribution !~ /security/ && !$recorduser && !($privmode)) || $simulate) {
        $dbh = DBI->connect("DBI:Pg:service=wanna-build") || 
                die "FATAL: Cannot open database: $DBI::errstr\n";
        $schema_suffix = '_public';
        $dbh = DBI->connect("DBI:Pg:service=wanna-build") || 
                die "FATAL: Cannot open database: $DBI::errstr\n";
        $schema_suffix = '_public';