X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bin%2Fwanna-build;h=4ba644ebbdb4149adb1e30f1c8a496a79d389ab5;hb=80adc1ea160f423e6cfbb348bf1efefbac89d332;hp=cdfd60c86b03c80684ad730a2c8b476fdfd3c139;hpb=4056cd30f3cfda96a2fd3ed622b15cbe31738586;p=wannabuild.git diff --git a/bin/wanna-build b/bin/wanna-build index cdfd60c..4ba644e 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -303,8 +303,7 @@ END { } my $schema_suffix = ''; -# TODO: Base this on something else, like an option that is passed. -if ($real_user eq 'nobody') { +if (isin( $op_mode, qw(list info)) && $distribution !~ /security/) { $dbh = DBI->connect("DBI:Pg:service=wanna-build") || die "FATAL: Cannot open database: $DBI::errstr\n"; $schema_suffix = '_public'; @@ -897,12 +896,6 @@ sub add_one_needsbuild { } $state = $pkg->{'state'}; - if ($state eq "Needs-Build") - { - print "$name: Already in Needs-Build.\n"; - return; - } - if ($state eq "BD-Uninstallable") { if ($opt_override) { print "$name: Forcing uninstallability mark to be removed. This is not permanent and might be reset with the next trigger run\n";