]> git.donarmstrong.com Git - wannabuild.git/commitdiff
If no option is passed, we want to have all packages.
authorKurt Roeckx <kurt@roeckx.be>
Sun, 20 Sep 2009 21:28:12 +0000 (21:28 +0000)
committerKurt Roeckx <kurt@roeckx.be>
Sun, 20 Sep 2009 21:28:12 +0000 (21:28 +0000)
bin/wanna-build

index 313bc0b7d490a773bfc657fdad4eea3e0d7e9cfe..4fe1d730b8efae90db4270b3883d691241185001 100755 (executable)
@@ -2430,7 +2430,7 @@ sub get_all_source_info {
        my $q = 'SELECT * FROM ' . table_name()
                . ' WHERE distribution = ? ';
        my @args = ($distribution);
-       if (uc($options{state}) ne "ALL") {
+       if ($options{state} && uc($options{state}) ne "ALL") {
                $q .= ' AND upper(state) = ? ';
                push @args, uc($options{state});
        }