summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-06-22 00:01:15 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-06-22 00:01:15 (EDT)
commit58bc7b4acee5243f0e10abd6ba036100f71191c4 (patch)
treeaa36fa4617a7880f1ac8a89c8515734a27db7789 /src
parent4febe6f438f4cfef1a0b8a932ad79cdc2106d671 (diff)
ob-buildopk: Fix crash on src packages
Due to attempted architecture-qualification.
Diffstat (limited to 'src')
-rw-r--r--src/ob-buildopk.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ob-buildopk.sh b/src/ob-buildopk.sh
index d7486fc..3370807 100644
--- a/src/ob-buildopk.sh
+++ b/src/ob-buildopk.sh
@@ -32,7 +32,12 @@ build_opk()
local touch_noderef=
local sort_r=
- binary_qual="$(ob_qualify_package_name "${binary}" "${OPK_HOST_ARCH}")"
+ if [ "x${arch}" = 'xsrc' ]; then
+ binary_qual="${binary}"
+ else
+ binary_qual="$(ob_qualify_package_name "${binary}" \
+ "${OPK_HOST_ARCH}")"
+ fi
ob_info "$(ob_get_msg 'build_opk')" \
"${binary_qual}_${version}_${arch}_${plat}.opk"