Usually when new buildd is setup it does not have a basedir (/srv/chroot)
which causes script setting up build chroots to fail.
This change creates basedir if directory does not exist, instead to error out.
Signed-off-by: Héctor Orón Martínez <zumbi@debian.org>
fi
done
fi
-[ -d "$basedir" ] || die "Error: $basedir does not exist (or is not a directory)."
+[ -d "$basedir" ] || mkdir -p "$basedir"
[ -d "$builddir" ] || die "Error: $builddir does not exist (or is not a directory)."
target="$basedir/$tuple.tar.gz"