diff options
-rw-r--r-- | layman/dbtools/gitoliteparser.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |