aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <proyvind@moondrake.org>2016-06-28 10:57:37 +0200
committerPer Øyvind Karlsen <proyvind@moondrake.org>2016-06-28 10:57:37 +0200
commit54f31b36f24b0fc330452327c4db53ca72dceadd (patch)
treeced14fcc3fe68fff8b2801d22ffc2883f51bac14 /MgaRepo
parentc39ea1b41302c39d1af36e7d05126df0bcc55516 (diff)
downloadmgarepo-54f31b36f24b0fc330452327c4db53ca72dceadd.tar
mgarepo-54f31b36f24b0fc330452327c4db53ca72dceadd.tar.gz
mgarepo-54f31b36f24b0fc330452327c4db53ca72dceadd.tar.bz2
mgarepo-54f31b36f24b0fc330452327c4db53ca72dceadd.tar.xz
mgarepo-54f31b36f24b0fc330452327c4db53ca72dceadd.zip
don't make error throwing at end of detectVCS() conditional
Diffstat (limited to 'MgaRepo')
-rw-r--r--MgaRepo/rpmutil.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py
index 92f663d..6f7f415 100644
--- a/MgaRepo/rpmutil.py
+++ b/MgaRepo/rpmutil.py
@@ -34,8 +34,7 @@ def detectVCS(url):
return SVN()
if os.path.exists(os.path.join(url,".git")) and os.path.isdir(os.path.join(url,".git")):
return GIT()
- else:
- raise Error("No supported repository found at path: %s" % url)
+ raise Error("No supported repository found at path: %s" % url)
def get_spec(pkgdirurl, targetdir=".", submit=False):
svn = detectVCS(pkgdirurl)