diff options
author | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-06-28 11:44:49 +0200 |
---|---|---|
committer | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-06-28 20:16:48 +0200 |
commit | 0f3861e168d9edc1611b106af32e3cbce3f86ddd (patch) | |
tree | e8dc3fbf146e5b2e6e76c1bf736ca55abae4a4e1 /MgaRepo | |
parent | 54f31b36f24b0fc330452327c4db53ca72dceadd (diff) | |
download | mgarepo-0f3861e168d9edc1611b106af32e3cbce3f86ddd.tar mgarepo-0f3861e168d9edc1611b106af32e3cbce3f86ddd.tar.gz mgarepo-0f3861e168d9edc1611b106af32e3cbce3f86ddd.tar.bz2 mgarepo-0f3861e168d9edc1611b106af32e3cbce3f86ddd.tar.xz mgarepo-0f3861e168d9edc1611b106af32e3cbce3f86ddd.zip |
raise error at end of protocol detection in detectVCS() too
Diffstat (limited to 'MgaRepo')
-rw-r--r-- | MgaRepo/rpmutil.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py index 6f7f415..443a403 100644 --- a/MgaRepo/rpmutil.py +++ b/MgaRepo/rpmutil.py @@ -27,8 +27,7 @@ def detectVCS(url): return GIT() elif "svn" in uri: return SVN() - else: - raise Error("Unknown protocol %s for %s" % (protocol, url)) + raise Error("Unknown protocol %s for %s" % (protocol, url)) elif os.path.exists(url) and os.path.isdir(url): if os.path.exists(os.path.join(url,".svn")) and os.path.isdir(os.path.join(url,".svn")): return SVN() |