Allow option -f to avoid pbuilder update
authorAdam Dickmeiss <adam@lenny.(none)>
Tue, 25 Nov 2008 10:18:12 +0000 (11:18 +0100)
committerAdam Dickmeiss <adam@lenny.(none)>
Tue, 25 Nov 2008 10:18:12 +0000 (11:18 +0100)
id-deb-build/id-pbuild-all.sh

index b1db5a9..534f435 100755 (executable)
@@ -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