Use -w rather than -O for write permission.
--HG-- extra : convert_revision : 20cbb0fff9d9e2fb21a174c606db84bfc9ffba76
This commit is contained in:
@@ -38,7 +38,7 @@ extract_distfiles()
|
|||||||
local f=
|
local f=
|
||||||
|
|
||||||
[ -f $XBPS_EXTRACT_DONE ] && return 0
|
[ -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)"
|
msg_error "can't extract distfile(s) (permission denied)"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ unstow_pkg()
|
|||||||
cd $XBPS_PKGMETADIR/$pkgname || exit 1
|
cd $XBPS_PKGMETADIR/$pkgname || exit 1
|
||||||
if [ ! -f flist ]; then
|
if [ ! -f flist ]; then
|
||||||
msg_error "$pkg is incomplete, missing flist."
|
msg_error "$pkg is incomplete, missing flist."
|
||||||
elif [ ! -O flist ]; then
|
elif [ ! -w flist ]; then
|
||||||
msg_error "$pkg cannot be removed (permission denied)."
|
msg_error "$pkg cannot be removed (permission denied)."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user