9
1
mirror of https://github.com/QuantumPackage/qp2.git synced 2024-12-21 11:03:29 +01:00

Merge branch 'dev-lcpq' into dev-lct

This commit is contained in:
Emmanuel Giner 2019-03-27 18:30:13 +01:00
commit 7417c736af

View File

@ -3,7 +3,7 @@
"""
Usage:
qp_plugins list [-iuq]
qp_plugins download <url>
qp_plugins download <url> [-n <name>]
qp_plugins install <name>...
qp_plugins uninstall <name>
qp_plugins create -n <name> [-r <repo>] [<needed_modules>...]
@ -186,7 +186,10 @@ def main(arguments):
url.endswith(".zip"))
os.chdir(QP_PLUGINS)
if is_repo:
subprocess.check_call(["git", "clone", url])
git_cmd=["git", "clone", url]
if arguments["--name"]:
git_cmd.append(arguments["--name"])
subprocess.check_call(git_cmd)
else:
filename = url.split('/')[-1]