X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fschroot%2Ffiles%2Fsetup-dchroot;h=e727138af7a77559e3244b620ec1be8ca4ddb494;hb=2342f47256402a4e54d83cd32ce14302bab00c94;hp=d6275b55dd5b8179fdbbe0016a751e007c0ffba1;hpb=47e806d785e3195f855584d0739abb0ee2682c27;p=mirror%2Fdsa-puppet.git diff --git a/modules/schroot/files/setup-dchroot b/modules/schroot/files/setup-dchroot index d6275b55d..e727138af 100755 --- a/modules/schroot/files/setup-dchroot +++ b/modules/schroot/files/setup-dchroot @@ -89,6 +89,7 @@ genschrootconf() { local name="${suite}_${arch}-dchroot" fi + local fullname="$name" case "$arch" in kfreebsd-*) aliases="$name" @@ -101,7 +102,7 @@ genschrootconf() { cat << EOF [${name}] -description=[${name}] Debian $suite chroot for $arch +description=[${fullname}] Debian $suite chroot for $arch type=file file=$target EOF @@ -294,7 +295,7 @@ if [ -z "${builddir:-}" ]; then fi done fi -[ -d "$basedir" ] || mkdir -p "$basedir" +[ -d "$basedir" ] || die "Error: $basedir does not exist (or is not a directory)." [ -d "$builddir" ] || die "Error: $builddir does not exist (or is not a directory)." target="$basedir/$tuple.tar.gz" @@ -392,6 +393,7 @@ tartmp=$(tempfile --directory "$basedir" --suffix=".tar.gz") cleanup+=("rm -f $tartmp") ( cd "$rootdir" + chmod 0755 "$rootdir" tar caf "$tartmp" . if ! [ -z "$keep" ]; then savelog -l -c 4 "$target"