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.
This commit is contained in:
Chris Johns 2013-11-10 09:55:37 +11:00
parent 873016c249
commit ce0f7a19c3

View File

@ -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