pacman/scripts/libmakepkg
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
..
lint_package Update copyright years for 2016 2016-01-04 13:27:08 +10:00
lint_pkgbuild libmakepkg: increase robustness of the detection of array variables 2016-02-20 14:01:53 +10:00
source Update copyright years for 2016 2016-01-04 13:27:08 +10:00
tidy libmakepkg: ensure emptydir find command acts on individual directories 2016-05-05 13:56:06 +10:00
util libmakepkg: fix is_array function 2016-02-26 15:18:43 +10:00
.gitignore libmakepkg: update .gitignore 2015-09-22 15:11:52 +10:00
lint_package.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
lint_pkgbuild.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
source.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
tidy.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00
util.sh.in Update copyright years for 2016 2016-01-04 13:27:08 +10:00