retitle 429770 "Patch for pbuilder-distribution.sh script for use with pdebuild" tag 429770 patch thanks
The script I provided will have a problem with any option that can use a list of space delimited options such as --debbuildopts. Instead, the --pbuilder option should be used when using pdebuild with multiple pbuilder setups. The attached patch will allow for using the pbuilder-distribution.sh script as the pbuilder that pdebuild could use. -- Regards, Andres Mejia
--- pbuilder-distribution.sh.bak 2007-06-22 23:13:23.000000000 -0400 +++ pbuilder-distribution.sh 2007-06-23 00:57:34.000000000 -0400 @@ -7,7 +7,13 @@ PROCEED=false BASE_DIR="$HOME/pbuilder" case $OPERATION in - create|update|build|clean|login|execute ) + create|update|clean|login ) + PROCEED=true + ;; + --build|build ) + PROCEED=true + ;; + --execute|execute ) PROCEED=true ;; esac @@ -16,7 +22,7 @@ sudo pbuilder $OPERATION \ --basetgz $BASE_DIR/$DISTRIBUTION-base.tgz \ --distribution $DISTRIBUTION \ - --buildresult $BASE_DIR/result $@ + --buildresult $BASE_DIR/result "$@" else echo "Invalid command..." echo "Valid commands are:"