Package: watchupstream
Severity: wishlist
Version: 0.5.1
Tags: patch

this is kind of useful...of course, you could just pipe the output
into grep...

-- 
_________________________
Ryan Niebur
[email protected]
--- /home/ryan52/bin/watchupstream      2009-04-08 00:20:37.000000000 -0700
+++ watchupstream       2009-04-10 10:09:08.000000000 -0700
@@ -39,6 +39,7 @@
 my $debug = '';
 my $include_uploaders = '';
 my $color = '';
+my $ignore_ok = '';
 GetOptions
 (
        "packre=s"  => \$packre,
@@ -55,6 +56,7 @@
        "debug" => \$debug,
        "include-uploaders" => \$include_uploaders,
         "color" => \$color,
+       "ignore-ok" => \$ignore_ok,
 ) or die;
 $export = 1 if( $try );
 $nocache = 1 if( $try );
@@ -487,7 +489,7 @@
             $uncoloring = RESET;
         }
        print "$resulttime{$package} $package"
-               . " $resultlocal{$package} $resultnewest{$package} " . 
$coloring . "$resultuscan{$package}" . $uncoloring . "\n";
+               . " $resultlocal{$package} $resultnewest{$package} " . 
$coloring . "$resultuscan{$package}" . $uncoloring . "\n" if(!($ignore_ok && 
($resultuscan{$package} eq "OK" || $resultuscan{$package} eq "native")));
 }
 
 # subroutine to evaluate a watch file
--- watchupstream.1.orig        2009-04-10 10:07:41.000000000 -0700
+++ watchupstream.1     2009-04-10 10:14:13.000000000 -0700
@@ -106,6 +106,9 @@
 .TP
 .B \-\-color
 Print the output in color.
+.TP
+.B \-\-ignore-ok
+Ignore packages that are OK.
 
 .SH EXAMPLES
 .TP
@@ -123,6 +126,6 @@
 .TP
 .B watchupstream gmp --try=ftp://ftp.gnu.org/gnu/gmp/
 .TP
-.B watchupstream --maintre --include-uploaders --color
+.B watchupstream --maintre --include-uploaders --color --ignore-ok
 .SH SEE ALSO
 .BR uscan (1).

Attachment: signature.asc
Description: Digital signature

Reply via email to