diff options
author | Sergey Lukjanov <slukjanov@mirantis.com> | 2013-07-18 09:47:52 +0400 |
---|---|---|
committer | Sergey Lukjanov <slukjanov@mirantis.com> | 2013-07-18 09:47:52 +0400 |
commit | 29afae0bf24ebd513291668a0dd3b57d7c25a782 (patch) | |
tree | 746d44f4861530a7ac8dda9160d8cf167e587e08 | |
parent | 09d9af4ad072c402c30c389a838be16d55f7b2c7 (diff) | |
download | pbr-29afae0bf24ebd513291668a0dd3b57d7c25a782.tar.gz |
Ignore project creator while generating AUTHORS
New projects created by OpenStack Project Creator
<openstack-infra@lists.openstack.org>, so it'll be better to remove it
from the AUTHORS file.
Change-Id: I32975bd430635a38c7e737e70f381f7b07c6ed0c
-rw-r--r-- | pbr/packaging.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pbr/packaging.py b/pbr/packaging.py index 197a721..bae9816 100644 --- a/pbr/packaging.py +++ b/pbr/packaging.py @@ -273,14 +273,14 @@ def generate_authors(git_dir=None, dest_dir='.', option_dict=dict()): and not os.access(new_authors, os.W_OK)): return log.info('[pbr] Generating AUTHORS') - jenkins_email = 'jenkins@review' + ignore_emails = '(jenkins@review|infra@lists)' if git_dir is None: git_dir = _get_git_directory() if git_dir: # don't include jenkins email address in AUTHORS file git_log_cmd = ("git --git-dir=" + git_dir + " log --format='%aN <%aE>' | sort -u | " - "egrep -v '" + jenkins_email + "'") + "egrep -v '" + ignore_emails + "'") changelog = _run_shell_command(git_log_cmd) signed_cmd = ("git log --git-dir=" + git_dir + " | grep -i Co-authored-by: | sort -u") |