tags 320100 patch
thanks

Here's a patch to allow for multiple debbuildopts when using pdebuild,
either externally or internally. This patch will also allow for
multiple debbuildopts when using pbuilder.

Andres Mejia
--- pbuilder-checkparams.bak	2007-06-19 00:00:22.000000000 -0400
+++ pbuilder-checkparams	2007-06-19 00:04:48.000000000 -0400
@@ -132,7 +132,7 @@
 	    shift; shift;
 	    ;;
 	--debbuildopts)
-	    DEBBUILDOPTS="$2";
+	    DEBBUILDOPTS="${DEBBUILDOPTS} $2";
 	    shift; shift;
 	    ;;
 	--logfile)
--- pdebuild-checkparams.bak    2007-06-19 00:34:00.000000000 -0400
+++ pdebuild-checkparams        2007-06-19 00:34:56.000000000 -0400
@@ -40,7 +40,7 @@
            shift; shift;
            ;;
        --debbuildopts)
-           DEBBUILDOPTS="$2";
+           DEBBUILDOPTS="${DEBBUILDOPTS} $2";
            shift; shift;
            ;;
        --configfile)
--- pdebuild-internal.bak       2007-06-19 00:34:20.000000000 -0400
+++ pdebuild-internal   2007-06-19 00:36:00.000000000 -0400
@@ -43,8 +43,8 @@
 while [ -n "$1" ]; do
     case "$1" in
        --debbuildopts)
-           echo "Setting DEBBUILDOPTS=$2"
-           DEBBUILDOPTS="$2"
+           echo "Setting DEBBUILDOPTS=${DEBBUILDOPTS} $2"
+           DEBBUILDOPTS="${DEBBUILDOPTS} $2"
            shift; shift;
            ;;
        --uid)

Reply via email to