From f92b63f4fa81a6e4cc74b68cd8c7be9943ef84a3 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Tue, 2 Aug 2011 10:11:04 +0200 Subject: Improve handling of description extraction, add warnings on mismatch --- layman/dbtools/gitoliteparser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layman/dbtools/gitoliteparser.py b/layman/dbtools/gitoliteparser.py index 141088a..19baf73 100644 --- a/layman/dbtools/gitoliteparser.py +++ b/layman/dbtools/gitoliteparser.py @@ -66,9 +66,11 @@ class RepoDatabase: elif matcher is _desc_line: desc_repo = m.group(1) + if repo != desc_repo: + print('WARNING: Looks like description of repo "%s" mentions repo "%s", by mistake' % (repo, desc_repo)) desc_contact = m.group(2) desc_desc = m.group(3) - desc_map[desc_repo] = (desc_contact, desc_desc) + desc_map[repo] = (desc_contact, desc_desc) self._add(repo, terms_status, is_overlay, dont_add_reason) terms_status = None -- cgit v1.2.3-65-gdbad