diff options
author | RogutÄ—s Sparnuotos <rogutes@googlemail.com> | 2011-06-16 10:40:40 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-07-18 17:28:19 +0200 |
commit | 3a04267cdd0b1324c8153c813e9bc5726b005670 (patch) | |
tree | 97288f13cfb080b6fd22635d204a37b24e991a71 /scripts/makepkg.sh.in | |
parent | 65847fad44216e290986b40b404701432c17ff5a (diff) | |
download | pacman-3a04267cdd0b1324c8153c813e9bc5726b005670.tar.gz pacman-3a04267cdd0b1324c8153c813e9bc5726b005670.tar.xz |
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>
Diffstat (limited to 'scripts/makepkg.sh.in')
-rw-r--r-- | 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 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 |