libmakepkg: return 1 on error in arch array
The return value was being assigned when an error was found in a PKGBUILD's arch array but it never was returned. Also remove error message explaining about adding the arch array to a PKGBUILD. That was added a long time ago when the arch array first became compulsory. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
19e61a9e07
commit
dd3fe853b3
1 changed files with 2 additions and 2 deletions
|
@ -47,8 +47,6 @@ lint_arch() {
|
||||||
|
|
||||||
if (( ! IGNOREARCH )) && ! in_array "$CARCH" "${arch[@]}"; then
|
if (( ! IGNOREARCH )) && ! in_array "$CARCH" "${arch[@]}"; then
|
||||||
error "$(gettext "%s is not available for the '%s' architecture.")" "$pkgbase" "$CARCH"
|
error "$(gettext "%s is not available for the '%s' architecture.")" "$pkgbase" "$CARCH"
|
||||||
plain "$(gettext "Note that many packages may need a line added to their %s")" "$BUILDSCRIPT"
|
|
||||||
plain "$(gettext "such as %s.")" "arch=('$CARCH')"
|
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -61,4 +59,6 @@ lint_arch() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
return $ret
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue