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 | 75b7b24a03ab71098505b931fd62f4c9a023f01f (patch) | |
tree | 1aa2dcc654a4c9254b8d7f9d6635cf75369e89e1 /bin/check-new-issues | |
parent | 48589974f40ae440483835a10df0d2014d11bc00 (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"; |