summaryrefslogtreecommitdiffstats
path: root/bin/check-new-issues
diff options
context:
space:
mode:
authorRaphael Geissert <geissert@debian.org>2017-10-02 10:37:11 +0000
committerRaphael Geissert <geissert@debian.org>2017-10-02 10:37:11 +0000
commitb1aee3725cac03909f1e9d7f8fc2d68562572495 (patch)
tree7c016fb90eb83d84e3c358e9f439f9f2151dc493 /bin/check-new-issues
parentbad883e02d43ab89f99f297d118896e806430dc2 (diff)
Add -D option to skip the downloads
Useful when invoking check-new-issues multiple times git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@56344 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'bin/check-new-issues')
-rwxr-xr-xbin/check-new-issues9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/check-new-issues b/bin/check-new-issues
index af3585ae98..760d29b614 100755
--- a/bin/check-new-issues
+++ b/bin/check-new-issues
@@ -7,7 +7,7 @@ use Getopt::Std;
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 @@ OPTIONS: [ -l [-n <n>] [-f] ]
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 @@ $auto_display_limit = $opts{a} if defined $opts{a};
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";

© 2014-2024 Faster IT GmbH | imprint | privacy policy