From 7213fec428503e2c25a6ec1f45ed6c8cf32ef82a Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 7 Nov 2010 05:24:35 +0100 Subject: Stop on first regex matching --- layman/dbtools/gitoliteparser.py | 2 ++ 1 file changed, 2 insertions(+) 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(): -- cgit v1.2.3-65-gdbad