summaryrefslogtreecommitdiffstats
path: root/src/opkbuild.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/opkbuild.sh')
-rw-r--r--src/opkbuild.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index 832b43c..e1da8e4 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -417,6 +417,10 @@ step_bincontrol()
oh_error "${oh_str_no_binary_packages}"
fi
fi
+ echo "${pkg}" | grep -E "${OH_SOURCE_RE}" >/dev/null 2>&1
+ if [ "${?}" -ne 0 ]; then
+ oh_error "${oh_str_bad_binary_package_name}" "${pkg}"
+ fi
oh_control_parse_binary "${pkg}"
for field in ${OH_CONTROL_BINARY_FIELDS_REQUIRED} \
${OH_CONTROL_BINARY_FIELDS_OPTIONAL}; do