From 3a04267cdd0b1324c8153c813e9bc5726b005670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rogut=C4=97s=20Sparnuotos?= Date: Thu, 16 Jun 2011 11:40:40 +0300 Subject: 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 Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 14479f8a..ef70a496 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -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 -- cgit v1.2.3