summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/opkbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opkbuild.sh b/src/opkbuild.sh
index 804d97f..56a359b 100644
--- a/src/opkbuild.sh
+++ b/src/opkbuild.sh
@@ -409,7 +409,7 @@ step_bincontrol()
for pkg in ../*.pkg/; do
pkg="${pkg#../}"
- pkg="${pkg%/}"
+ pkg="${pkg%.pkg/}"
oh_control_parse_binary "${pkg}"
for field in ${OH_CONTROL_BINARY_FIELDS_REQUIRED} \
${OH_CONTROL_BINARY_FIELDS_OPTIONAL}; do