aboutgitcode
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-07-06 17:23:23 +1000
committerStefano Brivio <sbrivio@redhat.com>2022-07-06 19:48:42 +0200
commit7bca683c7db6b314d7ef81542dd6ff844262e38f (patch)
tree14d82ea5e7eabbd141b66e22435648e5a8649623
parent18a0f1c1ebc9729980e5ab2cf323bf34d7ca780d (diff)
downloadmbuto-7bca683c7db6b314d7ef81542dd6ff844262e38f.tar
mbuto-7bca683c7db6b314d7ef81542dd6ff844262e38f.tar.gz
mbuto-7bca683c7db6b314d7ef81542dd6ff844262e38f.tar.bz2
mbuto-7bca683c7db6b314d7ef81542dd6ff844262e38f.tar.lz
mbuto-7bca683c7db6b314d7ef81542dd6ff844262e38f.tar.xz
mbuto-7bca683c7db6b314d7ef81542dd6ff844262e38f.tar.zst
mbuto-7bca683c7db6b314d7ef81542dd6ff844262e38f.zip
Fix parsing of LINKS
Currently mbuto misparses the LINKS variable in the profile. It will correctly assign the first two tokens to the target and link name, but for subsequent tokens ${__target} will always be non-empty, and so we'll never change it for later links. AFAICT this has been missed because the existing sample profiles only have links all going to the same target. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rwxr-xr-xmbuto1
1 files changed, 1 insertions, 0 deletions
diff --git a/mbuto b/mbuto
index 4ffe549..7530c72 100755
--- a/mbuto
+++ b/mbuto
@@ -808,6 +808,7 @@ prog_add() {
prog_link "${1}" \
"${__bindir##${wd}}/$("${BASENAME}" "${__bin}")" \
"${__target}" "${__l}"
+ __target=
done
libs_copy "${__bin}"