summaryrefslogtreecommitdiff
path: root/buildstream/utils.py
diff options
context:
space:
mode:
authorJosh Smith <qinusty@gmail.com>2018-08-29 10:38:53 +0100
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2018-08-29 12:38:15 +0000
commit42ad937d7c47a685cb6f7a58f81d82d66cf2a157 (patch)
treeb5ceb8b7623528a72f8bb544f9b59832486b9359 /buildstream/utils.py
parent5fc7b5ac1f2c290fb3f5b1818fec3fe933b418c0 (diff)
downloadbuildstream-42ad937d7c47a685cb6f7a58f81d82d66cf2a157.tar.gz
Prevent ValueError on URLs without an alias
Fixes #597
Diffstat (limited to 'buildstream/utils.py')
-rw-r--r--buildstream/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/buildstream/utils.py b/buildstream/utils.py
index 3d8bd62ca..1aeea52be 100644
--- a/buildstream/utils.py
+++ b/buildstream/utils.py
@@ -47,6 +47,7 @@ _magic_timestamp = calendar.timegm([2011, 11, 11, 11, 11, 11])
# The separator we use for user specified aliases
_ALIAS_SEPARATOR = ':'
+_URI_SCHEMES = ["http", "https", "ftp", "file", "git", "sftp", "ssh"]
class UtilError(BstError):