Assert name isn't the empty string in find_external_dependency()

Invariant since 87e62012
pull/3657/head
Jon Turney 6 years ago
parent 60b66a7752
commit c3335615e2
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81
  1. 1
      mesonbuild/dependencies/base.py

@ -1252,6 +1252,7 @@ display_name_map = {
}
def find_external_dependency(name, env, kwargs):
assert(name)
required = kwargs.get('required', True)
if not isinstance(required, bool):
raise DependencyException('Keyword "required" must be a boolean.')

Loading…
Cancel
Save