From 99d910ab28812fabb10a785cbd25d8170df606ad 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: [PATCH] No need for a writable PKGDEST with --nobuild. --- scripts/makepkg.sh.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index dfb7976..9ecd88a 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1764,7 +1764,7 @@ readonly ALL_OFF BOLD BLUE GREEN RED YELLOW # override settings with an environment variable for batch processing PKGDEST=${_PKGDEST:-$PKGDEST} PKGDEST=${PKGDEST:-$startdir} #default to $startdir if undefined -if [[ ! -w $PKGDEST ]]; then +if [[ ! $NOBUILD && ! -w $PKGDEST ]]; then error "$(gettext "You do not have write permission to store packages in %s.")" "$PKGDEST" plain "$(gettext "Aborting...")" exit 1 -- 1.7.5.2