diff options
author | Raphael Geissert <geissert@debian.org> | 2017-10-02 10:37:11 +0000 |
---|---|---|
committer | Raphael Geissert <geissert@debian.org> | 2017-10-02 10:37:11 +0000 |
commit | 226c67fe78c7742689af055b3d31b7cc97318571 (patch) | |
tree | 6a95193be46f4c436aa09b440f3f3e8dddea1c0a /bin/check-new-issues | |
parent | b6f0ed0a0e306f7c69575635f4722a4a5cf14e07 (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-x | bin/check-new-issues | 9 |
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"; |