diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-03-12 12:49:09 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-03-12 12:49:09 +0100 |
commit | e55294ccc966ccba6299a7e0fe91d74d8e292e8e (patch) | |
tree | 6b46e64bf2d128219aaaef778378329783379a7a | |
parent | c9cb42d3cd4e1243c3cdf32e09c828088b62fce7 (diff) | |
download | qutebrowser-e55294ccc966ccba6299a7e0fe91d74d8e292e8e.tar.gz qutebrowser-e55294ccc966ccba6299a7e0fe91d74d8e292e8e.zip |
scripts: Filter out some noise in recompile_requirements
-rw-r--r-- | scripts/dev/recompile_requirements.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/scripts/dev/recompile_requirements.py b/scripts/dev/recompile_requirements.py index f9a94bfe3..562841c84 100644 --- a/scripts/dev/recompile_requirements.py +++ b/scripts/dev/recompile_requirements.py @@ -399,7 +399,13 @@ def _get_changes(diff): for line in diff: if not line.startswith('-') and not line.startswith('+'): continue - if line.startswith('+++ ') or line.startswith('--- '): + elif line.startswith('+++ ') or line.startswith('--- '): + continue + elif not line.strip(): + # Could be newline changes on Windows + continue + elif line[1:].startswith('# This file is automatically'): + # Could be newline changes on Windows continue name, version = parse_versioned_line(line[1:]) |