From c728b2384b3c691b644c0354caa2bff85f83ee33 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 01 Aug 2012 08:47:33 -0400 Subject: Set more fields for "src:" binary packages. --- (limited to 'lib') 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() -- cgit v0.9.1