Run pbuilder create if not done already
[git-tools-moved-to-github.git] / 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