xbps-src/build_dependencies.sh: in !CHROOT_READY case don't install pkgs with fakeroot.

This commit is contained in:
Juan RP 2014-05-19 12:40:44 +02:00
parent 6fc3d360fc
commit 14a5ef4503
1 changed files with 5 additions and 1 deletions

View File

@ -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