abuild: fix bug in install script detection

This commit is contained in:
Natanael Copa 2011-06-28 11:31:40 +00:00
parent 9947fdfafa
commit f5a3a48da0

View File

@ -553,6 +553,7 @@ EOF
if [ "$pkgname" != "busybox" ] && ! depends_has busbox; 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"
@ -600,7 +601,7 @@ EOF
for i in $install $triggers; do
local f=${i%=*}
local n=${f%.*}
if [ "$n" != "$pkgname" ]; then
if [ "$n" != "$name" ]; then
continue
fi
script=${f#$name}