From ce0f7a19c367473f122626d93e556a1e595bd348 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Sun, 10 Nov 2013 09:55:37 +1100 Subject: [PATCH] Add the host to the build set tar file name if no target. If building a host package use the host as the package tar file name prefix. This means the tar files will all start with the host name. --- source-builder/sb/setbuilder.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source-builder/sb/setbuilder.py b/source-builder/sb/setbuilder.py index 1427ead..1491e9b 100644 --- a/source-builder/sb/setbuilder.py +++ b/source-builder/sb/setbuilder.py @@ -58,7 +58,12 @@ class buildset: else: self.macros = copy.copy(macros) self.bset = bset - self.bset_pkg = '%s-%s-set' % (self.macros.expand('%{_target}'), self.bset) + _target = self.macros.expand('%{_target}') + if len(_target): + pkg_prefix = _target + else: + pkg_prefix = self.macros.expand('%{_host}') + self.bset_pkg = '%s-%s-set' % (pkg_prefix, self.bset) self.mail_header = '' self.mail_report = '' self.build_failure = None