pacman/scripts
morganamilo 2c91d08e62 libmakepkg: fix linting arrays of empty strings
[[ ${array[@]} ]] will resolve to false if array only contains empty
strings. This means that values such as "depends=('')" can be inserted
into a pkgbuild and bypass the linting.

This causes makepkg to successfully build the package while pacman
refuses to install it because of the unmet dependency on ''.

Instead check the length of the array.

Signed-off-by: morganamilo <morganamilo@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
2018-10-21 19:08:03 +10:00
..
completion scripts: Remove trailing semicolons 2018-08-10 12:37:20 +10:00
libmakepkg libmakepkg: fix linting arrays of empty strings 2018-10-21 19:08:03 +10:00
library makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
po Pull updated translations from Transifex 2018-07-27 10:38:57 +10:00
.gitignore makepkg: Move parseopts from library to libmakepkg 2016-10-22 20:50:54 +10:00
Makefile.am Drop vestiges of SIZECMD 2018-10-20 13:22:05 -07:00
makepkg-template.pl.in Remove all modelines from the project 2018-05-14 09:59:15 +10:00
makepkg.sh.in scripts: deduplicate localized copyright messages 2018-09-19 00:13:29 +10:00
pacman-db-upgrade.sh.in scripts: deduplicate localized copyright messages 2018-09-19 00:13:29 +10:00
pacman-key.sh.in scripts: deduplicate localized copyright messages 2018-09-19 00:13:29 +10:00
pkgdelta.sh.in scripts: deduplicate localized copyright messages 2018-09-19 00:13:29 +10:00
repo-add.sh.in repo-add: add support for the zst format 2018-09-19 18:15:50 +10:00
wrapper.sh.in scripts: pass on options such as set -x to child processes 2018-08-10 15:20:40 +10:00