diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2022-01-31 14:45:12 -0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-02-01 00:47:33 +0200 |
commit | 0185f2ed61290715f990f786597f3b73a36e678f (patch) | |
tree | 63bc5cf91c55d04fcd09974d29b16f92abaa9cb0 /mesonbuild | |
parent | 577842912266b61f7cdfa569d9ea99d0b0fa3b01 (diff) | |
download | meson-0185f2ed61290715f990f786597f3b73a36e678f.zip meson-0185f2ed61290715f990f786597f3b73a36e678f.tar.gz meson-0185f2ed61290715f990f786597f3b73a36e678f.tar.bz2 |
Fix dep.get_variable() with empty string default_value
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/dependencies/pkgconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/pkgconfig.py b/mesonbuild/dependencies/pkgconfig.py index a7b7fc8..73f2e60 100644 --- a/mesonbuild/dependencies/pkgconfig.py +++ b/mesonbuild/dependencies/pkgconfig.py @@ -402,7 +402,7 @@ class PkgConfigDependency(ExternalDependency): if not variable: ret, out, _ = self._call_pkgbin(['--print-variables', self.name]) if not re.search(r'^' + variable_name + r'$', out, re.MULTILINE): - if default: + if default is not None: variable = default else: mlog.warning(f"pkgconfig variable '{variable_name}' not defined for dependency {self.name}.") |