![]() Due to a copy-paste error when initially implementing this, it actually
uses a duplicate function name, usually resulting in lint_pkgbuild
overwriting the function definition.
Then the PKGBUILD lint gets run twice, one time before the PKGBUILD is
even sourced -- to potentially surprising results, like erroring out on
a pre-existing shell definition that doesn't match our expectations.
Seen in the wild with lint_config triggering an error for
'declare -x arch="foo"'
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Allan McRae <allan@archlinux.org>
(cherry picked from commit
|
||
---|---|---|
.. | ||
completion | ||
libmakepkg | ||
library | ||
po | ||
.gitignore | ||
Makefile.am | ||
makepkg-template.pl.in | ||
makepkg.sh.in | ||
pacman-db-upgrade.sh.in | ||
pacman-key.sh.in | ||
pkgdelta.sh.in | ||
repo-add.sh.in | ||
wrapper.sh.in |