From 14a5ef4503ecd50e53677bafa94666b010ca0b00 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 19 May 2014 12:40:44 +0200 Subject: [PATCH] xbps-src/build_dependencies.sh: in !CHROOT_READY case don't install pkgs with fakeroot. --- common/xbps-src/shutils/build_dependencies.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/xbps-src/shutils/build_dependencies.sh b/common/xbps-src/shutils/build_dependencies.sh index 55d7ac491e..90964da10b 100644 --- a/common/xbps-src/shutils/build_dependencies.sh +++ b/common/xbps-src/shutils/build_dependencies.sh @@ -14,7 +14,11 @@ install_pkg_from_repos() { if [ -n "$cross" ]; then $FAKEROOT_CMD $XBPS_INSTALL_XCMD -Ayd "$pkg" >$tmplogf 2>&1 else - $FAKEROOT_CMD $XBPS_INSTALL_CMD -Ayd "$pkg" >$tmplogf 2>&1 + if [ -z "$CHROOT_READY" ]; then + $XBPS_INSTALL_CMD -Ayd "$pkg" >$tmplogf 2>&1 + else + $FAKEROOT_CMD $XBPS_INSTALL_CMD -Ayd "$pkg" >$tmplogf 2>&1 + fi fi rval=$? if [ $rval -ne 0 -a $rval -ne 17 ]; then