aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogdano Arendartchuk <bogdano@mandriva.org>2006-11-13 03:10:46 +0000
committerBogdano Arendartchuk <bogdano@mandriva.org>2006-11-13 03:10:46 +0000
commit7405ba4000a438fd49873100dfefaef53d0ea68e (patch)
treeaf982498f2e7e5b98882ec6898347f533bce9f51
parentc0c7e58a098064358280d637ef328ed7a859a096 (diff)
downloadmgarepo-7405ba4000a438fd49873100dfefaef53d0ea68e.tar
mgarepo-7405ba4000a438fd49873100dfefaef53d0ea68e.tar.gz
mgarepo-7405ba4000a438fd49873100dfefaef53d0ea68e.tar.bz2
mgarepo-7405ba4000a438fd49873100dfefaef53d0ea68e.tar.xz
mgarepo-7405ba4000a438fd49873100dfefaef53d0ea68e.zip
Removed duplicated code to find the author name in make_releases.
-rw-r--r--RepSys/log.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/RepSys/log.py b/RepSys/log.py
index 5c29876..25c54de 100644
--- a/RepSys/log.py
+++ b/RepSys/log.py
@@ -199,9 +199,7 @@ def make_release(author=None, revision=None, date=None, lines=None,
entries=[], released=True, version=None, release=None):
rel = _Release()
rel.author = author
- found = emailpat.match(config.get("users", author, author or ""))
- rel.author_name = (found and found.group("name")) or author
- rel.author_email = (found and found.group("email")) or author
+ rel.author_name, rel.author_email = get_author_name(author)
rel.revision = revision
rel.version = version
rel.release = release