From: Adam Dickmeiss Date: Tue, 25 Nov 2008 10:18:12 +0000 (+0100) Subject: Allow option -f to avoid pbuilder update X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=64c8e31eea29e032b49196f6cf03e3ecb8473dee;p=git-tools-moved-to-github.git Allow option -f to avoid pbuilder update --- diff --git a/id-deb-build/id-pbuild-all.sh b/id-deb-build/id-pbuild-all.sh index b1db5a9..534f435 100755 --- a/id-deb-build/id-pbuild-all.sh +++ b/id-deb-build/id-pbuild-all.sh @@ -1,4 +1,9 @@ #!/bin/sh +update=true +if test "$1" == "-f"; then + shift + update=false +fi PKG="$1" if test -z "$PKG"; then echo "Specify .dsc file" @@ -10,7 +15,9 @@ if test ! -e "$PKG"; then fi for dist in etch lenny; do for arch in i386 amd64; do - DIST=$dist ARCH=$arch pbuilder update --override-config + if $update; then + DIST=$dist ARCH=$arch pbuilder update --override-config + fi DIST=$dist ARCH=$arch pbuilder --build $PKG done done