xbps-src: chroot: do nothing if we are already in the chroot.

This commit is contained in:
Juan RP 2014-11-10 11:57:46 +01:00
parent 88c76fb588
commit 67c854fc64
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ chroot_sync_repos() {
chroot_handler() {
local action="$1" pkg="$2" rv=0 arg= _envargs= _chargs=
if [ -z "$CHROOT_READY" ]; then
if [ -n "$IN_CHROOT" -o -z "$CHROOT_READY" ]; then
return 0
fi
# Debian uses /run/shm instead...