summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/control.sh19
1 files changed, 14 insertions, 5 deletions
diff --git a/lib/control.sh b/lib/control.sh
index e193d86..e07b04d 100644
--- a/lib/control.sh
+++ b/lib/control.sh
@@ -60,16 +60,25 @@ oh_control_parse_binary()
oh_control_gen_source()
{
- _old_arch="${OH_CONTROL_BINARY_FIELD_ARCHITECTURE}"
- _old_desc="${OH_CONTROL_BINARY_FIELD_DESCRIPTION}"
-
+ _old_package="${OH_CONTROL_BINARY_FIELD_PACKAGE}"
+ _old_version="${OH_BINARY_VERSION}"
+ _old_architecture="${OH_CONTROL_BINARY_FIELD_ARCHITECTURE}"
+ _old_recommends="${OH_CONTROL_BINARY_FIELD_RECOMMENDS}"
+ _old_description="${OH_CONTROL_BINARY_FIELD_DESCRIPTION}"
+
+ OH_CONTROL_BINARY_FIELD_PACKAGE="src:${OH_SOURCE}"
+ OH_BINARY_VERSION="${OH_SOURCE_VERSION}"
OH_CONTROL_BINARY_FIELD_ARCHITECTURE='all'
+ OH_CONTROL_BINARY_FIELD_RECOMMENDS="${OH_CONTROL_SOURCE_FIELD_BUILD_DEPENDS}"
OH_CONTROL_BINARY_FIELD_DESCRIPTION="${OH_SOURCE} source package"
_control_gen 'SOURCE' "src:${OH_SOURCE}.control/control"
- OH_CONTROL_BINARY_FIELD_ARCHITECTURE="${_old_arch}"
- OH_CONTROL_BINARY_FIELD_DESCRIPTION="${_old_desc}"
+ OH_CONTROL_BINARY_FIELD_PACKAGE="${_old_package}"
+ OH_BINARY_VERSION="${_old_version}"
+ OH_CONTROL_BINARY_FIELD_ARCHITECTURE="${_old_architecture}"
+ OH_CONTROL_BINARY_FIELD_RECOMMENDS="${_old_recommends}"
+ OH_CONTROL_BINARY_FIELD_DESCRIPTION="${_old_description}"
}
oh_control_gen_binary()