From 3576623b0f46dab27fbb243f6d5595916187642f Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Fri, 1 Jun 2018 01:27:40 +0100 Subject: Consolidate raising a DependencyException() if required but not-found This is now done by find_external_dependency() in all cases I can't help but think this perhaps should be in a few more places... --- mesonbuild/dependencies/ui.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'mesonbuild/dependencies/ui.py') diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py index ca7db3f..904c37f 100644 --- a/mesonbuild/dependencies/ui.py +++ b/mesonbuild/dependencies/ui.py @@ -227,10 +227,6 @@ class QtBaseDependency(ExternalDependency): self.link_args = [] from_text = '(checked {})'.format(mlog.format_list(methods)) self.version = 'none' - if self.required: - err_msg = '{} {} dependency not found {}' \ - ''.format(self.qtname, type_text, from_text) - raise DependencyException(err_msg) if not self.silent: mlog.log(found_msg.format(from_text), mlog.red('NO')) return -- cgit v1.1