summaryrefslogtreecommitdiff
path: root/morphlib/util.py
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2013-06-19 16:24:23 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2013-06-19 16:24:23 +0100
commitc8959658a225bcd8a7575c002a36cc034d697237 (patch)
tree93c807bb6879e00bcffdac8b31c141511f7c3094 /morphlib/util.py
parentf5c2727bdb316c2b7640012d3b32abacde10fafa (diff)
parentb00d895bc5aa96f7f62057d4e170d7b64346ff3d (diff)
downloadmorph-c8959658a225bcd8a7575c002a36cc034d697237.tar.gz
Merge remote-tracking branch 'origin/baserock/richarddale/check-repo-alias-option'
Reviewed-By: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
Diffstat (limited to 'morphlib/util.py')
-rw-r--r--morphlib/util.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/morphlib/util.py b/morphlib/util.py
index b56443e9..a9c22217 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()