mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-27 16:02:55 +02:00
common/xbps-src/shutils/common: only complain about do_install in main pkg
this file is also sourced during subpackage install, so a metapackage that has non-meta subpackages will source this and scream because there is no do_install
This commit is contained in:
parent
97618aeef1
commit
2d3f6aadf5
1 changed files with 1 additions and 1 deletions
|
@ -526,7 +526,7 @@ setup_pkg() {
|
|||
# If build_style is unset, a do_install() function must be defined.
|
||||
if [ -z "$build_style" ]; then
|
||||
# Check that at least do_install() is defined.
|
||||
if [ "$metapackage" != yes ] && ! declare -f do_install >/dev/null; then
|
||||
if [ "$metapackage" != yes ] && ! declare -f do_install >/dev/null && [ "${pkgname}" = "${sourcepkg}" ]; then
|
||||
msg_error "$pkgver: missing do_install() function!\n"
|
||||
fi
|
||||
elif [ "$build_style" = meta ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue