diff options
author | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-06-30 22:48:20 +0200 |
---|---|---|
committer | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-06-30 22:48:20 +0200 |
commit | 125d343b51691109745cecd6660c6e0d259ab929 (patch) | |
tree | 6d3752a4c621268304e2f52794b867fff2fbcf15 /MgaRepo/rpmutil.py | |
parent | 40c68f9aea2e3ae9d8a41b88f9626eb2f01f4018 (diff) | |
download | mgarepo-125d343b51691109745cecd6660c6e0d259ab929.tar mgarepo-125d343b51691109745cecd6660c6e0d259ab929.tar.gz mgarepo-125d343b51691109745cecd6660c6e0d259ab929.tar.bz2 mgarepo-125d343b51691109745cecd6660c6e0d259ab929.tar.xz mgarepo-125d343b51691109745cecd6660c6e0d259ab929.zip |
add url to VCS class
Diffstat (limited to 'MgaRepo/rpmutil.py')
-rw-r--r-- | MgaRepo/rpmutil.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/MgaRepo/rpmutil.py b/MgaRepo/rpmutil.py index 2b78d68..9cfbef2 100644 --- a/MgaRepo/rpmutil.py +++ b/MgaRepo/rpmutil.py @@ -19,14 +19,14 @@ def detectVCS(url): if ':' in url: protocol,uri = url.split(":") if "svn" in protocol: - return SVN() + return SVN(url=url) elif "git" in protocol: - return GIT() + return GIT(url=url) elif "http" in protocol: if uri.endswith(".git"): - return GIT() + return GIT(url=url) elif "svn" in uri: - return SVN() + return SVN(url=url) raise Error("Unknown protocol %s for %s" % (protocol, url)) elif os.path.exists(url) and os.path.isdir(url): while True: @@ -34,7 +34,7 @@ def detectVCS(url): for vcs in (SVN, GIT): vcsdir = os.path.join(url, vcs.vcs_dirname) if os.path.exists(vcsdir) and os.path.isdir(vcsdir): - return vcs(url) + return vcs(path=url) url = os.path.dirname(url) if url == "/": break |