Package: devscripts
Version: 2.10.71
Severity: minor
Tags: patch
User: [email protected]
Usertag: pts-subscribe

The fix to #604740 broke the unsubscribing functionality:

| $ pts-subscribe graphy
| /usr/bin/pts-subscribe: line 157: [: now + 30 days: integer expression 
expected
| No unsubscription request will be sent

Easy solution seems to be to do a string comparison instead of an
integer one:

diff --git a/scripts/pts-subscribe.sh b/scripts/pts-subscribe.sh
index 0cb7413..d27036f 100755
--- a/scripts/pts-subscribe.sh
+++ b/scripts/pts-subscribe.sh
@@ -154,7 +154,7 @@ if [ "$ACTION" = "unsubscribe" ]; then
     echo "$ACTION $pkg $DEBEMAIL" | mail [email protected]
 else
     # Check for an "at" command
-    if [ "$PTS_UNTIL" != forever -a "$PTS_UNTIL" -ne 0 ]; then
+    if [ "$PTS_UNTIL" != forever -a "$PTS_UNTIL" != 0 ]; 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

SR

--- /etc/devscripts.conf ---

--- ~/.devscripts ---
BTS_SMTP_HOST=localhost
DEBCHANGE_RELEASE_HEURISTIC=changelog
UBUNTUTOOLS_BUILDER=pbuilder
REQUESTSYNC_USE_LPAPI=yes
UBUNTUTOOLS_DEBIAN_MIRROR=http://dvorak:3142/debian
UBUNTUTOOLS_DEBSEC_MIRROR=http://dvorak:3142/debian-security
UBUNTUTOOLS_UBUNTU_MIRROR=http://dvorak:3142/ubuntu

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages devscripts depends on:
ii  dpkg-dev                      1.15.8.10  Debian package development tools
ii  libc6                         2.11.2-11  Embedded GNU C Library: Shared lib
ii  perl                          5.10.1-18  Larry Wall's Practical Extraction 

Versions of packages devscripts recommends:
ii  at          3.1.12-1                     Delayed job execution and batch pr
ii  bzr         2.3.1-1                      easy to use distributed version co
ii  chromium-br 6.0.472.63~r59945-5+squeeze4 Chromium browser
ii  conkeror [w 0.9.3+git110307-2            keyboard focused web browser with 
ii  curl        7.21.3-1                     Get a file from an HTTP, HTTPS or 
ii  cvs         1:1.12.13-12                 Concurrent Versions System
ii  darcs       2.4.4-3                      a distributed, interactive, smart 
ii  dctrl-tools 2.18                         Command-line tools to process Debi
ii  debian-keyr 2011.03.03                   GnuPG keys of Debian Developers
ii  dput        0.9.6.2                      Debian package upload tool
ii  dupload     2.7.0                        utility to upload Debian packages
ii  elinks [www 0.12~pre5-2                  advanced text-mode WWW browser
ii  epiphany-br 2.30.6-1                     Intuitive GNOME web browser
ii  equivs      2.0.8                        Circumvent Debian package dependen
ii  fakeroot    1.14.5-1                     Gives a fake root environment
ii  git [git-co 1:1.7.4.1-3                  fast, scalable, distributed revisi
ii  git-core    1:1.7.4.1-3                  fast, scalable, distributed revisi
ii  gnupg       1.4.11-3                     GNU privacy guard - a free PGP rep
ii  heirloom-ma 12.4-2                       feature-rich BSD mail(1)
ii  iceweasel [ 3.5.17-1                     Web browser based on Firefox
ii  libauthen-s 2.1500-1                     Authen::SASL - SASL Authentication
ii  libcrypt-ss 0.57-2                       Support for https protocol in LWP
ii  libjson-per 2.51-1                       module for manipulating JSON-forma
ii  libparse-de 2.005-2                      Easy OO parsing of Debian control-
ii  libsoap-lit 0.712-2                      Perl implementation of a SOAP clie
ii  libterm-siz 0.2-4+b1                     Perl extension for retrieving term
ii  libtimedate 1.2000-1                     collection of modules to manipulat
ii  liburi-perl 1.58-1                       module to manipulate and access UR
ii  libwww-perl 5.837-1                      simple and consistent interface to
ii  libyaml-syc 1.17-1                       Perl module providing a fast, ligh
ii  lintian     2.5.0~rc1                    Debian package checker
ii  lsb-release 3.2-27                       Linux Standard Base version report
ii  lynx-cur [w 2.8.8dev.8-1                 Text-mode WWW Browser with NLS sup
ii  lzma        4.43-14                      Compression method of 7z format in
ii  man-db      2.5.9-4                      on-line manual pager
ii  mercurial   1.8.1-1                      scalable distributed version contr
ii  openssh-cli 1:5.5p1-6                    secure shell (SSH) client, for sec
ii  patch       2.6.1-1                      Apply a diff file to an original
ii  patchutils  0.3.2-1                      Utilities to work with patches
ii  sensible-ut 0.0.6                        Utilities for sensible alternative
ii  strace      4.5.20-2.1                   A system call tracer
ii  subversion  1.6.16dfsg-1                 Advanced version control system
ii  unzip       6.0-4                        De-archiver for .zip files
ii  wdiff       0.6.3-1                      Compares two files word by word
ii  wget        1.12-2.1                     retrieves files from the web
ii  xz-utils    5.0.0-2                      XZ-format compression utilities

Versions of packages devscripts suggests:
ii  build-essential        11.5              Informational list of build-essent
pn  cvs-buildpackage       <none>            (no description available)
pn  devscripts-el          <none>            (no description available)
ii  gnuplot                4.4.0-1.1         A command-line driven interactive 
ii  libfile-desktopentry-p 0.04-2            Perl module to handle freedesktop 
pn  libnet-smtp-ssl-perl   <none>            (no description available)
ii  mutt                   1.5.20-9+squeeze1 text-based mailreader supporting M
ii  svn-buildpackage       0.8.3             helper programs to maintain Debian
pn  w3m                    <none>            (no description available)

-- no debconf information




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

Reply via email to