sb: Fix 'bare' builds with --trace.

This commit is contained in:
Chris Johns 2017-06-26 09:27:55 +10:00
parent 21a9010ebf
commit e02139d4ab

View File

@ -422,7 +422,8 @@ class file:
def _pkgconfig_check(self, test):
# Hack to by pass pkgconfig checks when just wanting to download the
# source.
if self.macros['_dry_run'] == '1' and self.macros['with_download'] == '1':
if self.macros['_dry_run'] == '1' and \
('with_download' in self.macros and self.macros['with_download'] == '1'):
return '0'
ok = False
if type(test) == str: