diff options
author | Richard Dale <richard.dale@codethink.co.uk> | 2013-06-17 14:39:11 +0100 |
---|---|---|
committer | Richard Dale <richard.dale@codethink.co.uk> | 2013-06-17 14:39:11 +0100 |
commit | b00d895bc5aa96f7f62057d4e170d7b64346ff3d (patch) | |
tree | c81bbc0e5ced82a2cb26d7b027d7b72caf99eb0c /morphlib/util.py | |
parent | d4d62cba266c08f35c79c1efe315cd4651135284 (diff) | |
download | morph-b00d895bc5aa96f7f62057d4e170d7b64346ff3d.tar.gz |
Check that that the repo-alias option matches the expected RE
Diffstat (limited to 'morphlib/util.py')
-rw-r--r-- | morphlib/util.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/morphlib/util.py b/morphlib/util.py index 1a347da0..40420bf1 100644 --- a/morphlib/util.py +++ b/morphlib/util.py @@ -144,6 +144,10 @@ def combine_aliases(app): # pragma: no cover m = re.match(repo_pat, repo_alias) if m: alias_map[m.group('prefix')] = repo_alias + else: + raise morphlib.Error( + 'Invalid repo-alias: %s' % repo_alias) + return alias_map.values() |