Author: jamessan
Date: 2009-12-13 06:10:25 +0000 (Sun, 13 Dec 2009)
New Revision: 2052

Modified:
   trunk/debian/changelog
   trunk/scripts/who-uploads.sh
Log:
who-uploads: Show usage if no arguments are given.  Thanks to Kumar Appaiah.  
(Closes: #560955)

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2009-12-12 17:04:36 UTC (rev 2051)
+++ trunk/debian/changelog      2009-12-13 06:10:25 UTC (rev 2052)
@@ -3,6 +3,8 @@
   [ James Vega ]
   * checkbashisms: Detect use of {x..z} expansion.  Thanks to Raphael
     Geissert.  (Closes: #560774)
+  * who-uploads: Show usage if no arguments are given.  Thanks to Kumar
+    Appaiah.  (Closes: #560955)
 
   [ Patrick Schoenfeld ]
   * licensecheck: Add support for some common variants of the WTFPL

Modified: trunk/scripts/who-uploads.sh
===================================================================
--- trunk/scripts/who-uploads.sh        2009-12-12 17:04:36 UTC (rev 2051)
+++ trunk/scripts/who-uploads.sh        2009-12-13 06:10:25 UTC (rev 2052)
@@ -190,6 +190,11 @@
 GPG_NO_KEYRING="--no-options --no-auto-check-trustdb --no-default-keyring 
--keyring /dev/null"
 GPG_OPTIONS="--no-options --no-auto-check-trustdb --no-default-keyring"
 
+if [ $# -eq 0 ]; then
+    usage;
+    exit 1
+fi
+
 # Now actually get the reports :)
 
 for package; do



-- 
To unsubscribe, send mail to [email protected].

Reply via email to