summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-01-21 08:39:19 +0100
committerAaron Griffin <aaronmgriffin@gmail.com>2009-01-21 08:39:19 +0100
commit370ce8157185390d9a2be5d27f51d35a866d93d6 (patch)
treed9abd30f9b84f14615177e082c5868ac013c2e15 /functions
parentf589ea107c2c77922307351b0661587f9a640473 (diff)
downloadmkinitcpio-370ce8157185390d9a2be5d27f51d35a866d93d6.tar.gz
mkinitcpio-370ce8157185390d9a2be5d27f51d35a866d93d6.tar.xz
Use BASEDIR for adding binaries and dependent libs
Hook's BINARIES settings were being copied from the parent if using an alternate BASEDIR. This should fix that Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'functions')
-rw-r--r--functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions b/functions
index 8dbb24c..354a855 100644
--- a/functions
+++ b/functions
@@ -192,7 +192,7 @@ add_binary ()
#remove TLS libraries
notls=$(echo ${lib} | sed 's|/lib/tls.*/\(lib.*\)|/lib/\1|')
[ -e "${notls}" ] && lib="${notls}"
- [ -f "${lib}" ] && add_file "${lib}"
+ [ -f "${lib}" ] && add_file "${BASEDIR}${lib}"
fi
done
;;
@@ -215,7 +215,7 @@ parse_hook ()
for bin in ${BINARIES}; do
if [ -n "${bin}" ]; then
- add_binary "${bin}"
+ add_binary "${BASEDIR}${bin}"
fi
done