summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-03-12 12:49:09 +0100
committerFlorian Bruhin <me@the-compiler.org>2021-03-12 12:49:15 +0100
commitedaf675a1fc06c2a6124a5c4d4c4832f50838870 (patch)
tree6b46e64bf2d128219aaaef778378329783379a7a
parent98d7982e24da00bf9d41099e07831c3909873dff (diff)
downloadqutebrowser-edaf675a1fc06c2a6124a5c4d4c4832f50838870.tar.gz
qutebrowser-edaf675a1fc06c2a6124a5c4d4c4832f50838870.zip
scripts: Filter out some noise in recompile_requirements
(cherry picked from commit e55294ccc966ccba6299a7e0fe91d74d8e292e8e)
-rw-r--r--scripts/dev/recompile_requirements.py8
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:])