mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-02 10:21:49 -05:00
makepkg: fix regression in split package function checking
Commit 13748ca0529 inversed the nature of one test wherein the if clause would throw a fatal error if a legitimate package function was defined in PKGBUILD. Signed-off-by: Andres P <aepd87@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
67d71ea932
commit
c6a94a8d22
@ -1255,7 +1255,7 @@ check_sanity() {
|
||||
|
||||
if (( ${#pkgname[@]} > 1 )); then
|
||||
for pkg in ${pkgname[@]}; do
|
||||
if declare -f package_${pkg} >/dev/null; then
|
||||
if ! declare -f package_${pkg} >/dev/null; then
|
||||
error "$(gettext "missing package function for split package '%s'")" "$pkg"
|
||||
return 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user