xbps-src: remove stupid check for uid == 0.

This is required to make xbps-src work with user namespaces.
This commit is contained in:
Juan RP 2015-03-05 20:26:21 +01:00
parent a786acf4d2
commit d7b027308d

View file

@ -468,11 +468,6 @@ XBPS_TARGET_PKG="${2##*/}"
# Check if stdout is a tty; if false disable colors. # Check if stdout is a tty; if false disable colors.
test -t 1 || export NOCOLORS=1 test -t 1 || export NOCOLORS=1
if [ "$(id -u)" -eq 0 ]; then
echo "ERROR: root cannot use xbps-src, switch to a regular user."
exit 1
fi
if [ -f $XBPS_MASTERDIR/.xbps_chroot_init ]; then if [ -f $XBPS_MASTERDIR/.xbps_chroot_init ]; then
export CHROOT_READY=1 export CHROOT_READY=1
fi fi