diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-20 20:52:25 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-20 20:52:30 +0200 |
commit | 7e16987d3a0369688dfea1e3d98efdb3e00c7b9c (patch) | |
tree | e258a890d216ec54eb44cb7f5ae1a3eaf54c4632 /build_scripts | |
parent | 6db97969571b5d1b51b22d2de29eb37f253689f0 (diff) | |
parent | 14023079a9c082fa85592858698810e997af418e (diff) |
Merge remote-tracking branch 'origin/5.15' into dev
Change-Id: I5c6913b4eea9d6e11415011753e556eca18c5532
Diffstat (limited to 'build_scripts')
-rw-r--r-- | build_scripts/qp5_tool.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/build_scripts/qp5_tool.py b/build_scripts/qp5_tool.py index 6871bb343..b023fc58f 100644 --- a/build_scripts/qp5_tool.py +++ b/build_scripts/qp5_tool.py @@ -211,9 +211,10 @@ def read_config_file(file_name): keyPattern = re.compile(r'^\s*([A-Za-z0-9\_\-]+)\s*=\s*(.*)$') with open(file_name) as f: while True: - line = f.readline().rstrip() + line = f.readline() if not line: break + line = line.rstrip() match = keyPattern.match(line) if match: key = match.group(1) @@ -394,8 +395,8 @@ if __name__ == '__main__': argument_parser.print_help() sys.exit(0) - git = which('git') - if git is None: + git = 'git' + if which(git) is None: warnings.warn('Unable to find git', RuntimeWarning) sys.exit(-1) |