Package: devscripts
Version: 2.8.14
Severity: wishlist

`man wnpp-alert` suggests that you can call wnpp-alert with "-h" for
help informaiton, but the actual script does not implement it.  It
also doesn't implement the "-v" short option.  Here is a patch which
implements these short options.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.19-ac4
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages devscripts depends on:
ii  debianutils                 2.13.2       Miscellaneous utilities specific t
ii  dpkg-dev                    1.10.27      Package building tools for Debian
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  perl                        5.8.4-8      Larry Wall's Practical Extraction 
ii  sed                         4.1.4-2      The GNU sed stream editor

-- no debconf information

*** /tmp/devscripts.wnppalertopts.patch
diff -rup devscripts-2.8.14/wnpp-alert.sh devscripts-2.8.14mod/wnpp-alert.sh
--- devscripts-2.8.14/wnpp-alert.sh     2004-11-30 06:08:24.000000000 -0600
+++ devscripts-2.8.14mod/wnpp-alert.sh  2005-04-11 16:06:01.000000000 -0500
@@ -17,7 +17,7 @@ PROGNAME=`basename $0`
 CACHEDIR=~/.devscripts_cache
 
 usage () { echo \
-"Usage: $PROGNAME [--help|--version]
+"Usage: $PROGNAME [--help|-h|--version|-v]
   List all installed packages with RFA or Orphaned bugs against them,
   as determined from the WNPP website."
 }
@@ -29,8 +29,8 @@ Authors: Arthur Korn <[EMAIL PROTECTED]>
 Modifications: Julian Gilbey <[EMAIL PROTECTED]>"
 }
 
-if [ "x$1" = "x--help" ]; then usage; exit 0; fi
-if [ "x$1" = "x--version" ]; then version; exit 0; fi
+if [ "x$1" = "x--help" -o "x$1" = "x-h" ]; then usage; exit 0; fi
+if [ "x$1" = "x--version" -o "x$1" = "x-v" ]; then version; exit 0; fi
 
 if ! command -v wget >/dev/null 2>&1; then
     echo "$PROGNAME: need the wget package installed to run this" >&2


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to