diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2010-11-07 05:24:35 +0100 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2010-11-07 05:24:35 +0100 |
commit | 7213fec428503e2c25a6ec1f45ed6c8cf32ef82a (patch) | |
tree | 9d6546a9f9cff8fd92347e081b2617763d87f49b | |
parent | Move package laymandbtools back to layman.dbtools (diff) | |
download | repositories-xml-format-7213fec428503e2c25a6ec1f45ed6c8cf32ef82a.tar.gz repositories-xml-format-7213fec428503e2c25a6ec1f45ed6c8cf32ef82a.tar.bz2 repositories-xml-format-7213fec428503e2c25a6ec1f45ed6c8cf32ef82a.zip |
Stop on first regex matching
-rw-r--r-- | layman/dbtools/gitoliteparser.py | 2 |
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(): |