mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-11 09:19:40 +00:00
abuild: prepare_metafiles: use new /bin/sh virtual instead of hardcoded busybox dependency
This commit is contained in:
parent
a74359e8e2
commit
eb0a7d0811
@ -894,13 +894,13 @@ prepare_metafiles() {
|
||||
EOF
|
||||
local i deps
|
||||
deps="$depends"
|
||||
if [ "$pkgname" != "busybox" ] && ! depends_has busybox; then
|
||||
if [ "$pkgname" != "busybox" ] && ! depends_has busybox && ! depends_has /bin/sh; then
|
||||
for i in $install $triggers; do
|
||||
local s=${i%=*}
|
||||
[ "$name" != "${s%.*}" ] && continue
|
||||
if head -n 1 "$startdir/$s" | grep '^#!/bin/sh' >/dev/null ; then
|
||||
msg "Script found. busybox added as a dependency for $pkg"
|
||||
deps="$deps busybox"
|
||||
msg "Script found. /bin/sh added as a dependency for $pkg"
|
||||
deps="$deps /bin/sh"
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user