summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2010-11-07 05:24:35 +0100
committerSebastian Pipping <sebastian@pipping.org>2010-11-07 05:24:35 +0100
commit7213fec428503e2c25a6ec1f45ed6c8cf32ef82a (patch)
tree9d6546a9f9cff8fd92347e081b2617763d87f49b /layman/dbtools/gitoliteparser.py
parentMove package laymandbtools back to layman.dbtools (diff)
downloadrepositories-xml-format-7213fec428503e2c25a6ec1f45ed6c8cf32ef82a.tar.gz
repositories-xml-format-7213fec428503e2c25a6ec1f45ed6c8cf32ef82a.tar.bz2
repositories-xml-format-7213fec428503e2c25a6ec1f45ed6c8cf32ef82a.zip
Stop on first regex matching
Diffstat (limited to 'layman/dbtools/gitoliteparser.py')
-rw-r--r--layman/dbtools/gitoliteparser.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/layman/dbtools/gitoliteparser.py b/layman/dbtools/gitoliteparser.py
index d63173c..65159bd 100644
--- a/layman/dbtools/gitoliteparser.py
+++ b/layman/dbtools/gitoliteparser.py
@@ -77,6 +77,8 @@ class RepoDatabase:
elif matcher is _dont_add_line:
dont_add_reason = m.group(1)
+ break
+
self._add(repo, terms_status, is_overlay, dont_add_reason)
for desc_repo, (desc_contact, desc_desc) in desc_map.items():