xbps-src: require sudo to build packages.

The reason is that fakeroot can't read files that have restrictive
perms and you'd have to change them before the src installation, and
restoring them at binpkg pre-installation.

I prefer to avoid all this and build the pkg with appropiate perms.

--HG--
extra : convert_revision : 8a5086049ab575962913eda0cb2ace0c211b97f1
This commit is contained in:
Juan RP 2009-02-16 17:36:21 +01:00
parent 4094879d4d
commit 1802997b0b
8 changed files with 14 additions and 13 deletions

View file

@ -165,7 +165,7 @@ xbps_make_binpkg()
binpkg=$pkgname-$version.$arch.xbps
pkgdir=$XBPS_PACKAGESDIR/$arch
run_rootcmd tar cfjp $XBPS_DESTDIR/$binpkg .
run_rootcmd yes tar cfjp $XBPS_DESTDIR/$binpkg .
if [ $? -eq 0 ]; then
[ ! -d $pkgdir ] && mkdir -p $pkgdir
mv -f $XBPS_DESTDIR/$binpkg $pkgdir