The following commit has been merged in the master branch:
commit 91e06f0229fefaaa696eba084d049bc7a1023ec7
Author: Adam D. Barratt <[email protected]>
Date:   Tue Feb 21 21:00:28 2012 +0000

    deb-reversion: Re-fix handling of multi-word hooks.  (Closes: #660782).
    
    This was originally fixed in 2.9.14 but accidentally broken again in
    2.9.26.

diff --git a/debian/changelog b/debian/changelog
index 5de4861..ca21b48 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 devscripts (2.11.5) UNRELEASED; urgency=low
 
-  * 
+  * deb-reversion: Re-fix handling of multi-word hooks.  (Closes: #660782).
+    This was originally fixed in 2.9.14 but accidentally broken again in
+    2.9.26.
 
  -- Adam D. Barratt <[email protected]>  Wed, 15 Feb 2012 19:40:58 +0000
 
diff --git a/scripts/deb-reversion.sh b/scripts/deb-reversion.sh
index d3f785e..47b0d0e 100755
--- a/scripts/deb-reversion.sh
+++ b/scripts/deb-reversion.sh
@@ -63,13 +63,13 @@ err()
 CURDIR="$(pwd)"
 SHORTOPTS=hVo:v:ck:Ds:b
 
LONGOPTS=help,version,old-version:new-version:,calculate-only,hook:,debug,string:,force-bad-version
-set -- $(getopt -s bash -o $SHORTOPTS -l $LONGOPTS --n $PROGNAME -- "$@")
+eval set -- "$(getopt -s bash -o $SHORTOPTS -l $LONGOPTS -n $PROGNAME -- "$@")"
 
 CALCULATE=0
 DPKGDEB_DEBUG=
 DEB=
 DCH_OPTIONS=
-for opt in $@; do
+for opt in "$@"; do
   case "${OPT_STATE:-}" in
     SET_OLD_VERSION) eval OLD_VERSION="$opt";;
     SET_NEW_VERSION) eval NEW_VERSION="$opt";;

-- 
Git repository for devscripts


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

Reply via email to