Author: adam-guest
Date: 2008-03-15 20:27:56 +0000 (Sat, 15 Mar 2008)
New Revision: 1146

Modified:
   trunk/debian/changelog
   trunk/scripts/pts-subscribe.sh
Log:
  if --help / --version were used. Also don't complain about at unless an
  unsubscription mail needs generating. (Closes: #471088)

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2008-03-15 20:22:42 UTC (rev 1145)
+++ trunk/debian/changelog      2008-03-15 20:27:56 UTC (rev 1146)
@@ -93,7 +93,8 @@
     release.d.o/migration
   * debpkg: Fix reference to dpkg(8) in the manpage
   * pts-subscribe: Don't complain about mail and/or at not being available
-    if --help / --version were used (Closes: #471088)
+    if --help / --version were used. Also don't complain about at unless an
+    unsubscription mail needs generating. (Closes: #471088)
 
  -- Adam D. Barratt <[EMAIL PROTECTED]>  Sat, 01 Mar 2008 11:42:02 +0000
 

Modified: trunk/scripts/pts-subscribe.sh
===================================================================
--- trunk/scripts/pts-subscribe.sh      2008-03-15 20:22:42 UTC (rev 1145)
+++ trunk/scripts/pts-subscribe.sh      2008-03-15 20:27:56 UTC (rev 1146)
@@ -131,10 +131,12 @@
 fi
 
 # Check for an "at" command
-if ! command -v at >/dev/null 2>&1; then
-    echo "$PROGNAME: Could not find the \"at\" command; you must have the" >&2
-    echo "\"at\" package installed to run this script." >&2
-    exit 1
+if [ "$PTS_UNTIL" != forever ]; then
+    if ! command -v at >/dev/null 2>&1; then
+       echo "$PROGNAME: Could not find the \"at\" command; you must have the" 
>&2
+       echo "\"at\" package installed to run this script." >&2
+       exit 1
+    fi
 fi
 
 pkg=$1



-- 
To unsubscribe, send mail to [EMAIL PROTECTED]

Reply via email to