Fix previous when building base_chroot pkgs.

--HG--
extra : convert_revision : c46fd838deeb92ac89047bd32a9a0bef421e2aa5
This commit is contained in:
Juan RP 2009-02-16 19:04:23 +01:00
parent e59520869b
commit 82b01212ad

View file

@ -47,7 +47,7 @@ run_rootcmd()
lenv="XBPS_DISTRIBUTIONDIR=$XBPS_DISTRIBUTIONDIR $lenv"
shift
if [ -n "$usesudo" -a -z "$in_chroot" ]; then
if [ "$usesudo" = "yes" -a -z "$in_chroot" ]; then
sudo env ${lenv} $@
else
env ${lenv} ${fakeroot_cmd} $@