summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-06-28 11:31:40 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-06-28 11:31:40 +0000
commitf5a3a48da0dc6b3ab052c9a447fd800e4674b6e0 (patch)
tree110af1b9b769a441cf1e3d7ba122802f9d080ce0 /abuild.in
parent9947fdfafadd0d5fe4a19ff38f1e55ead0d95ac2 (diff)
downloadabuild-f5a3a48da0dc6b3ab052c9a447fd800e4674b6e0.tar.gz
abuild-f5a3a48da0dc6b3ab052c9a447fd800e4674b6e0.tar.bz2
abuild-f5a3a48da0dc6b3ab052c9a447fd800e4674b6e0.tar.xz
abuild-f5a3a48da0dc6b3ab052c9a447fd800e4674b6e0.zip
abuild: fix bug in install script detection
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 9db9c5b..fdc9527 100755
--- a/abuild.in
+++ b/abuild.in
@@ -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}