diff options
author | Martin Liska <mliska@suse.cz> | 2021-01-14 17:06:08 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-01-14 17:06:08 +0100 |
commit | 236d6a33ca63714474f0077390bff2d9d5b125eb (patch) | |
tree | 371ae2f30c281a9dabbb5852e253e67a8bed1478 /contrib | |
parent | 77d372abec0fbf2cfe922e3140ee3410248f979e (diff) | |
download | gcc-236d6a33ca63714474f0077390bff2d9d5b125eb.zip gcc-236d6a33ca63714474f0077390bff2d9d5b125eb.tar.gz gcc-236d6a33ca63714474f0077390bff2d9d5b125eb.tar.bz2 |
mklog: skip unsupported files
This fixes an infinite loop one could see for:
git show b87ec922c40 | ./contrib/mklog.py
contrib/ChangeLog:
* mklog.py: Fix infinite loop for unsupported files.
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/mklog.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/mklog.py b/contrib/mklog.py index bf51e56..a70536a 100755 --- a/contrib/mklog.py +++ b/contrib/mklog.py @@ -133,6 +133,9 @@ def generate_changelog(data, no_functions=False, fill_pr_titles=False): diff = PatchSet(data) for file in diff: + # skip files that can't be parsed + if file.path == '/dev/null': + continue changelog = find_changelog(file.path) if changelog not in changelogs: changelogs[changelog] = [] |