From 58bc7b4acee5243f0e10abd6ba036100f71191c4 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 22 Jun 2020 00:01:15 -0400 Subject: ob-buildopk: Fix crash on src packages Due to attempted architecture-qualification. --- (limited to 'src') 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" -- cgit v0.9.1