pacman/scripts
Allan McRae a66cba1b08 libmakepkg: ensure emptydir find command acts on individual directories
Using "-exec command {} +" systax exits on any error.  Such errors occur when
running rmdir on a non-empty directory.  Switch to "{} ;" syntax instead which
avoids exiting before the find command is completed.

Fixes FS#48515.

Note, we can not use "-empty" in the find command because it is not supported
by Busybox find, and the "--ignore-fail-on-non-empty" flag for rmdir is not
available on BSD rmdir variants.

Signed-off-by: Allan McRae <allan@archlinux.org>
(cherry picked from commit baf1ff64e6)
2016-05-05 13:56:06 +10:00
..
libmakepkg libmakepkg: ensure emptydir find command acts on individual directories 2016-05-05 13:56:06 +10:00
library Consistently use 'directory' instead of 'folder' 2014-01-28 21:37:00 +10:00
po Regenerate translations for 5.0.1 2016-02-23 13:09:39 +10:00
.gitignore makepkg: run locally with libtool style wrapper 2013-10-14 13:01:03 +10:00
Makefile.am libmakepkg: check if PKGBUILD variables are arrays or not as appropriate 2015-09-07 11:22:00 +10:00
makepkg-template.pl.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
makepkg-wrapper.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
makepkg.sh.in makepkg: do not run prepare() with --noextract 2016-02-23 12:50:04 +10:00
pacman-db-upgrade.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
pacman-key.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
pacman-optimize.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
pkgdelta.sh.in pkgdelta: Use high compression options offered by xdelta3 2015-01-02 21:48:59 +10:00
repo-add.sh.in repo-remove: fix checking for non-existent .db database 2016-02-20 14:01:53 +10:00