Use -w rather than -O for write permission.

--HG--
extra : convert_revision : 20cbb0fff9d9e2fb21a174c606db84bfc9ffba76
This commit is contained in:
Juan RP 2008-12-18 08:17:46 +01:00
parent dbf2d140e0
commit 6626a77bd7
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ extract_distfiles()
local f=
[ -f $XBPS_EXTRACT_DONE ] && return 0
[ -z "$in_chroot" -a ! -O $XBPS_BUILDDIR ] && \
[ -z "$in_chroot" -a ! -w $XBPS_BUILDDIR ] && \
msg_error "can't extract distfile(s) (permission denied)"
#

View file

@ -98,7 +98,7 @@ unstow_pkg()
cd $XBPS_PKGMETADIR/$pkgname || exit 1
if [ ! -f flist ]; then
msg_error "$pkg is incomplete, missing flist."
elif [ ! -O flist ]; then
elif [ ! -w flist ]; then
msg_error "$pkg cannot be removed (permission denied)."
fi