aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-07-22 00:55:02 -0400
committerNirbheek Chauhan <nirbheek@centricular.com>2022-08-08 19:10:32 +0530
commitc6d0cb648503bd4d644fa795e079d301d19a32e5 (patch)
tree8f4250dd3b1ff4a9629cbf8ac49e33de39c37635
parentbcb382b6403117513b0d7e77f01debb89fd54a45 (diff)
downloadmeson-c6d0cb648503bd4d644fa795e079d301d19a32e5.zip
meson-c6d0cb648503bd4d644fa795e079d301d19a32e5.tar.gz
meson-c6d0cb648503bd4d644fa795e079d301d19a32e5.tar.bz2
qt module: correctly compare program name for lrelease version
(b, name) will always have the canonical tool name, not just a potentially weird bin path. We need to check stderr for qt4 tools other than lrelease, but we keyed off of the tool bin path, so matches were by no means guaranteed, and specifically, would fail if the tool is looked up via bindir. This really should always have checked the canonical name, which is guaranteed to be correct. Partial fix for #10443
-rw-r--r--mesonbuild/modules/qt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/qt.py b/mesonbuild/modules/qt.py
index 49374d4..6a223a8 100644
--- a/mesonbuild/modules/qt.py
+++ b/mesonbuild/modules/qt.py
@@ -154,7 +154,7 @@ class QtBaseModule(ExtensionModule):
# Ensure that the version of qt and each tool are the same
def get_version(p: ExternalProgram) -> str:
_, out, err = Popen_safe(p.get_command() + arg)
- if b.startswith('lrelease') or not qt_dep.version.startswith('4'):
+ if name == 'lrelease' or not qt_dep.version.startswith('4'):
care = out
else:
care = err