Move log_fail() out of sub-method.

pull/3004/head
Benjamin Redelings 7 years ago
parent 20c1cb7d02
commit 7749497923
  1. 2
      mesonbuild/dependencies/misc.py

@ -151,6 +151,7 @@ class BoostDependency(ExternalDependency):
return return
if self.check_invalid_modules(): if self.check_invalid_modules():
self.log_fail()
return return
mlog.debug('Boost library root dir is', mlog.bold(self.boost_root)) mlog.debug('Boost library root dir is', mlog.bold(self.boost_root))
@ -187,7 +188,6 @@ class BoostDependency(ExternalDependency):
if invalid_modules: if invalid_modules:
mlog.log(mlog.red('ERROR:'), 'Invalid Boost modules: ' + ', '.join(invalid_modules)) mlog.log(mlog.red('ERROR:'), 'Invalid Boost modules: ' + ', '.join(invalid_modules))
self.log_fail()
return True return True
else: else:
return False return False

Loading…
Cancel
Save