Author: geissert
Date: 2017-10-02 10:37:11 +0000 (Mon, 02 Oct 2017)
New Revision: 56344

Modified:
   bin/check-new-issues
Log:
Add -D option to skip the downloads

Useful when invoking check-new-issues multiple times


Modified: bin/check-new-issues
===================================================================
--- bin/check-new-issues        2017-10-02 10:27:08 UTC (rev 56343)
+++ bin/check-new-issues        2017-10-02 10:37:11 UTC (rev 56344)
@@ -7,7 +7,7 @@
 use Term::ReadLine;
 
 my %opts;
-getopts('ln:fhi:t:Tca:e:uUs', \%opts);
+getopts('ln:fhi:t:Tca:e:uUsD', \%opts);
 
 sub print_commands {
     print <<'EOF';
@@ -55,6 +55,7 @@
             display only the count (default 10)
 -s        : skip automatic apt-cache/apt-file searches, suggest the
             command to run instead
+-D        : skip the download operations
 
 EOF
 
@@ -102,8 +103,10 @@
 
 my $editor=$ENV{EDITOR} || $ENV{VISUAL} || "vi";
 
-system "cd $basedir/.. ; wget -N $allitemsurl";
-system "cd $basedir/.. ; wget -N $wnppurl";
+unless ($opts{D}) {
+       system "cd $basedir/.. ; wget -N $allitemsurl";
+       system "cd $basedir/.. ; wget -N $wnppurl";
+}
 
 print "Reading data...\n";
 


_______________________________________________
Secure-testing-commits mailing list
Secure-testing-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/secure-testing-commits

Reply via email to