diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2010-08-25 19:28:49 +0400 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2010-08-25 19:29:59 +0400 |
commit | b6467c499dad0402266cc89ff86947e2b067c40c (patch) | |
tree | 27c42bd8220caa207444b1ec0b6f985ca63d4066 /scripts/commits-to-changelog.py | |
parent | bd6a37183b1a4a99760945ddaf3d55237aca4f52 (diff) |
Ignore removed ChangeLog files
If a ChangeLog has been removed, don't try to open the file.
Diffstat (limited to 'scripts/commits-to-changelog.py')
-rwxr-xr-x | scripts/commits-to-changelog.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/commits-to-changelog.py b/scripts/commits-to-changelog.py index 3de40bbe51a..8d30a4abe2f 100755 --- a/scripts/commits-to-changelog.py +++ b/scripts/commits-to-changelog.py @@ -266,6 +266,8 @@ def main (): if entries == None: continue for (changelog, lines) in entries.items (): + if not os.path.exists (changelog_path (changelog)): + continue if changelog not in touched_changelogs: touched_changelogs [changelog] = start_changelog (changelog) append_lines (touched_changelogs [changelog], lines) |