Run pbuilder create if not done already
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 3 Apr 2009 10:21:56 +0000 (12:21 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 3 Apr 2009 10:21:56 +0000 (12:21 +0200)
id-deb-build/id-pbuild-all.sh

index 265c8c9..e880884 100755 (executable)
@@ -11,6 +11,9 @@ if test ! -e "$PKG"; then
 fi
 for dist in jaunty intrepid hardy etch lenny; do
        for arch in i386 amd64; do
+               if test ! -f /var/cache/pbuilder/${dist}-${arch}-base.tgz; then
+                       DIST=$dist ARCH=$arch pbuilder create
+               fi
                if $update; then
                        DIST=$dist ARCH=$arch pbuilder update --override-config
                fi