]> err.no Git - dpkg/commitdiff
Allow dpkg-buildpackage to properly override '-b' when passed after '-B'.
authorGuillem Jover <guillem@debian.org>
Tue, 9 Jan 2007 22:07:16 +0000 (22:07 +0000)
committerGuillem Jover <guillem@debian.org>
Tue, 9 Jan 2007 22:07:16 +0000 (22:07 +0000)
Thanks to Julian Gilbey. Closes: #397479

ChangeLog
debian/changelog
scripts/dpkg-buildpackage.sh

index d53a68d18dd4cb54e153cf85b6bc43e1ed44d1dd..0a6030489fdb5b1018d2985c31462c8671432b25 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-01-10  Julian Gilbey  <jdg@polya.uklinux.net>
+
+       * scripts/dpkg-buildpackage.sh: Allow '-b' to properly override a
+       previously passed '-B'.
+
 2007-01-09  Guillem Jover  <guillem@debian.org>
 
        * configure.ac: Bump version to 1.14.0~.
index 124b6c7161539d27c40bffc39f56e67370d96d97..f9722ce593a4cf064e5a7ccea3b61becd8e6a37c 100644 (file)
@@ -3,6 +3,8 @@ dpkg (1.14.0) UNRELEASED; urgency=low
   [ Guillem Jover ]
   * Make the copyright information in dpkg-deb.1 and dpkg-split.1 match the
     one in the source. Thanks to Nicolas François. Closes: #379320
+  * Allow dpkg-buildpackage to properly override '-b' when passed after '-B'.
+    Thanks to Julian Gilbey. Closes: #397479
 
  -- Guillem Jover <guillem@debian.org>  Tue,  9 Jan 2007 22:48:47 +0200
 
index 571863c11ce4abb58e05bfa8c9304c289cd73a92..fbd3ae0d1bf452a5375467adfe8bf2b800874b50 100755 (executable)
@@ -109,7 +109,10 @@ do
        -tc)    cleansource=true ;;
        -t*)    targetgnusystem="$value" ;;          # Order DOES matter!
        -nc)    noclean=true; if [ -z "$binaryonly" ]; then binaryonly=-b; fi ;;
-       -b)     binaryonly=-b; [ "$sourceonly" ] && \
+       -b)     binaryonly=-b;
+               checkbuilddep_args='';
+               binarytarget=binary;
+               [ "$sourceonly" ] && \
                        { echo >&2 "$progname: cannot combine $1 and -S" ; exit 2 ; } ;;
        -B)     binaryonly=-B; checkbuilddep_args=-B; binarytarget=binary-arch; [ "$sourceonly" ] && \
                        { echo >&2 "$progname: cannot combine $1 and -S" ; exit 2 ; } ;;