Use -w rather than -O for write permission.
--HG-- extra : convert_revision : 20cbb0fff9d9e2fb21a174c606db84bfc9ffba76
This commit is contained in:
parent
dbf2d140e0
commit
6626a77bd7
|
@ -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)"
|
||||
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue