X-Git-Url: https://git.donarmstrong.com/?p=wannabuild.git;a=blobdiff_plain;f=bin%2Fwanna-build;h=28f2b1729650928f54a12586cddbb52d24177034;hp=6bddff24bc8b325ae73b839429666d6a4ceebc5c;hb=c97a76f09c3b8b7a92d458e1cfe322127e225cd2;hpb=2176a4da244356f95fc5ff810609c3705d4e5068 diff --git a/bin/wanna-build b/bin/wanna-build index 6bddff2..28f2b17 100755 --- a/bin/wanna-build +++ b/bin/wanna-build @@ -68,7 +68,7 @@ our ($verbose, $mail_logs, $list_order, $list_state, %prioval, %sectval, $info_all_dists, $arch, $category, %catval, %short_category, - $short_date, $list_min_age, $dbbase, @curr_time, + $short_date, $list_min_age, $list_max_age, $dbbase, @curr_time, $build_priority, %new_vers, $binNMUver, %merge_srcvers, %merge_binsrc, $printformat, $ownprintformat, $privmode, $extra_depends, $extra_conflicts, %distributions, %distribution_aliases @@ -193,7 +193,7 @@ GetOptions( if not $category ~~ [ values %short_category ]; }, 'min-age|a=i' => \$list_min_age, - 'max-age=i' => \$list_min_age, + 'max-age=i' => \$list_max_age, 'format=s' => \$printformat, 'own-format=s' => \$ownprintformat, 'Pas=s' => \$Pas, @@ -207,6 +207,7 @@ GetOptions( 'distribution-architectures' => \&_set_mode, 'distribution-aliases' => \&_set_mode, ) or usage(); +$list_min_age = -1 * $list_max_age if $list_max_age; my $dbh;