diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2020-06-09 20:39:39 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2020-06-09 20:40:44 +0100 |
commit | 62963c60fc19d07615afe9d4f1b897b2f60801b2 (patch) | |
tree | c753fe21c5c89d16278a86a4ff3c194043b25a9d /contrib | |
parent | 77103685ff4b50b3c4d7ee76688bdf452acc82c7 (diff) | |
download | gcc-62963c60fc19d07615afe9d4f1b897b2f60801b2.zip gcc-62963c60fc19d07615afe9d4f1b897b2f60801b2.tar.gz gcc-62963c60fc19d07615afe9d4f1b897b2f60801b2.tar.bz2 |
gcc-changelog: Use non-zero exit status on error
Also add comment explaining what the script does.
contrib/ChangeLog:
* gcc-changelog/git_email.py: Set exit status on error.
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/gcc-changelog/git_email.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/gcc-changelog/git_email.py b/contrib/gcc-changelog/git_email.py index 367cf76..bf74bd8 100755 --- a/contrib/gcc-changelog/git_email.py +++ b/contrib/gcc-changelog/git_email.py @@ -70,6 +70,9 @@ class GitEmail(GitCommit): strict=strict) +# With zero arguments, process every patch file in the ./patches directory. +# With one argument, process the named patch file. +# Patch files must be in 'git format-patch' format. if __name__ == '__main__': if len(sys.argv) == 1: allfiles = [] @@ -100,3 +103,4 @@ if __name__ == '__main__': if not email.lines: print('Error: patch contains no parsed lines', file=sys.stderr) email.print_errors() + sys.exit(1) |