From 4d086d2b1d6d318075f6fbc416deba4643d3b24f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 26 Jun 2011 01:51:58 +0200 Subject: [PATCH] xbps-src: do not fail if XBPS_CACHEDIR is unset. --- xbps-src/libexec/xbps-src-chroot-helper.sh.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xbps-src/libexec/xbps-src-chroot-helper.sh.in b/xbps-src/libexec/xbps-src-chroot-helper.sh.in index 1c4a1cd088..98070b23e3 100644 --- a/xbps-src/libexec/xbps-src-chroot-helper.sh.in +++ b/xbps-src/libexec/xbps-src-chroot-helper.sh.in @@ -59,6 +59,10 @@ mount_chroot_fs() ;; *) blah=/${f};; esac + if [ -z "$XBPS_CACHEDIR" -a "$f" = "cachedir" ]; then + echo "unset, ignoring." + continue + fi [ ! -d ${blah} ] && echo "failed." && continue @@XBPS_INSTALL_LIBEXECDIR@@/xbps-src-chroot-capmount \ ${dowrite} ${blah} ${XBPS_MASTERDIR}/${f} \