summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2010-11-24 18:44:23 +0100
committerSebastian Pipping <sebastian@pipping.org>2010-11-24 18:44:23 +0100
commit6d88449e9233f03771e315d988a18ad76d2b2d2a (patch)
treeec448a18fab88a1c0c3ea8a1a3a993e27f38b2cf
parentTake conf/dev.conf into account (diff)
downloadrepositories-xml-format-6d88449e9233f03771e315d988a18ad76d2b2d2a.tar.gz
repositories-xml-format-6d88449e9233f03771e315d988a18ad76d2b2d2a.tar.bz2
repositories-xml-format-6d88449e9233f03771e315d988a18ad76d2b2d2a.zip
Act on last line (description) of a repo block, not first line (repo declaration)
-rw-r--r--layman/dbtools/gitoliteparser.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/layman/dbtools/gitoliteparser.py b/layman/dbtools/gitoliteparser.py
index 1a66e86..141088a 100644
--- a/layman/dbtools/gitoliteparser.py
+++ b/layman/dbtools/gitoliteparser.py
@@ -56,11 +56,7 @@ class RepoDatabase:
m = matcher.search(line)
if m:
if matcher is _repo_line:
- self._add(repo, terms_status, is_overlay, dont_add_reason)
repo = m.group(1)
- terms_status = None
- is_overlay = None
- dont_add_reason = None
elif matcher is _terms_status_line:
terms_status = m.group(1)
@@ -74,6 +70,11 @@ class RepoDatabase:
desc_desc = m.group(3)
desc_map[desc_repo] = (desc_contact, desc_desc)
+ self._add(repo, terms_status, is_overlay, dont_add_reason)
+ terms_status = None
+ is_overlay = None
+ dont_add_reason = None
+
elif matcher is _dont_add_line:
dont_add_reason = m.group(1)