diff options
author | P. J. McDermott <pjm@nac.net> | 2012-08-01 08:47:33 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-08-01 08:47:33 (EDT) |
commit | c728b2384b3c691b644c0354caa2bff85f83ee33 (patch) | |
tree | 454c57427331cbdad313f6ecbcb2c1a91d8a3bcb | |
parent | e09df586ce9f9bab4c66779fd189017c8c3341c0 (diff) |
Set more fields for "src:" binary packages.
-rw-r--r-- | lib/control.sh | 19 |
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() |