Codebase list rust-stfu8 / 1869918
build.sh: don't error on source-only build Ximin Luo 4 years ago
1 changed file(s) with 3 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
3737 SRCNAME="${DEBSRC}_${DEBVER}"
3838 BUILDNAME="${DEBSRC}_${DEBVER}_${DEB_HOST_ARCH}"
3939 if [ -z "$CHROOT" ]; then
40 #if schroot -i -c "debcargo-unstable-${DEB_HOST_ARCH}-sbuild" >/dev/null 2>&1; then
40 if schroot -i -c "debcargo-unstable-${DEB_HOST_ARCH}-sbuild" >/dev/null 2>&1; then
4141 CHROOT="debcargo-unstable-${DEB_HOST_ARCH}-sbuild"
42 #el
43 if schroot -i -c "unstable-${DEB_HOST_ARCH}-sbuild" >/dev/null 2>&1; then
42 elif schroot -i -c "unstable-${DEB_HOST_ARCH}-sbuild" >/dev/null 2>&1; then
4443 CHROOT="unstable-${DEB_HOST_ARCH}-sbuild"
4544 echo >&2 "Automatically using sbuild chroot unstable-${DEB_HOST_ARCH}-sbuild; however it's"
4645 echo >&2 "strongly recommended to create a separate chroot debcargo-unstable-${DEB_HOST_ARCH}-sbuild"
4746 echo >&2 "so your builds won't have to re-download & re-install cargo, rustc, and llvm every time."
4847 echo >&2 "See README.rst section \"Build environment\" for details."
4948 sleep 1
50 else
49 elif [ "$SOURCEONLY" != 1 ]; then
5150 abort 1 "could not automatically find a suitable chroot; set CHROOT"
5251 fi
5352 fi