aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <proyvind@moondrake.org>2016-05-31 08:17:49 +0200
committerPer Øyvind Karlsen <proyvind@moondrake.org>2016-05-31 08:17:49 +0200
commit642907990e73b387d75a6c1df13b9f70648e24ea (patch)
tree32c3dae6b67aed4381eb55fdac76bbfdacff334e
parent9e9f1d722ede232b88969a4e7e574c109a5f9447 (diff)
downloadmgarepo-642907990e73b387d75a6c1df13b9f70648e24ea.tar
mgarepo-642907990e73b387d75a6c1df13b9f70648e24ea.tar.gz
mgarepo-642907990e73b387d75a6c1df13b9f70648e24ea.tar.bz2
mgarepo-642907990e73b387d75a6c1df13b9f70648e24ea.tar.xz
mgarepo-642907990e73b387d75a6c1df13b9f70648e24ea.zip
if no email defined, at least default to author@mageia.org
-rw-r--r--MgaRepo/log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/MgaRepo/log.py b/MgaRepo/log.py
index 25de1b7..04d6289 100644
--- a/MgaRepo/log.py
+++ b/MgaRepo/log.py
@@ -213,7 +213,7 @@ emailpat = re.compile("(?P<name>.*?)\s*<(?P<email>.*?)>")
def get_author_name(author):
found = emailpat.match(config.get("users", author, author))
name = ((found and found.group("name")) or author)
- email = ((found and found.group("email")) or author)
+ email = ((found and found.group("email")) or author+"@mageia.org")
return name, email
def parse_raw_date(rawdate):