mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
makepkg: Fix non-writable SRCPKGDEST error message
Provide a helpful error message for when creating a source tarball and SRCPKGDEST is not writable. Fixes FS#28197. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
fcbae69fe8
commit
47313acee4
@ -2048,6 +2048,11 @@ fi
|
||||
|
||||
SRCPKGDEST=${_SRCPKGDEST:-$SRCPKGDEST}
|
||||
SRCPKGDEST=${SRCPKGDEST:-$startdir} #default to $startdir if undefined
|
||||
if (( SOURCEONLY )) && [[ ! -w $SRCPKGDEST ]]; then
|
||||
error "$(gettext "You do not have write permission to store source tarballs in %s.")" "$SRCPKGDEST"
|
||||
plain "$(gettext "Aborting...")"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PKGEXT=${_PKGEXT:-$PKGEXT}
|
||||
SRCEXT=${_SRCEXT:-$SRCEXT}
|
||||
|
Loading…
Reference in New Issue
Block a user