From b00d895bc5aa96f7f62057d4e170d7b64346ff3d Mon Sep 17 00:00:00 2001 From: Richard Dale Date: Mon, 17 Jun 2013 14:39:11 +0100 Subject: Check that that the repo-alias option matches the expected RE --- morphlib/util.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'morphlib/util.py') 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() -- cgit v1.2.1