mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
makepkg: only test for writable PKGDEST when needed.
There is no need for a writable PKGDEST when using the --nobuild or --geninteg flags. Allan: added --geninteg Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
65847fad44
commit
3a04267cdd
@ -1877,7 +1877,7 @@ pkgdir="$BUILDDIR/pkg"
|
||||
|
||||
PKGDEST=${_PKGDEST:-$PKGDEST}
|
||||
PKGDEST=${PKGDEST:-$startdir} #default to $startdir if undefined
|
||||
if [[ ! -w $PKGDEST ]]; then
|
||||
if (( ! (NOBUILD || GENINTEG) )) && [[ ! -w $PKGDEST ]]; then
|
||||
error "$(gettext "You do not have write permission to store packages in %s.")" "$PKGDEST"
|
||||
plain "$(gettext "Aborting...")"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user