aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/commands
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <proyvind@moondrake.org>2016-07-22 16:48:40 +0200
committerPer Øyvind Karlsen <proyvind@moondrake.org>2016-07-22 16:48:40 +0200
commit88d54a58ef783282b4a522addda02e18aa31f1f3 (patch)
treed4506a7b73e66f5276b98439fa90775f68fae3b9 /MgaRepo/commands
parent85bd0d837f3f001b61cba9e8e37257ee410dee32 (diff)
downloadmgarepo-88d54a58ef783282b4a522addda02e18aa31f1f3.tar
mgarepo-88d54a58ef783282b4a522addda02e18aa31f1f3.tar.gz
mgarepo-88d54a58ef783282b4a522addda02e18aa31f1f3.tar.bz2
mgarepo-88d54a58ef783282b4a522addda02e18aa31f1f3.tar.xz
mgarepo-88d54a58ef783282b4a522addda02e18aa31f1f3.zip
add support for cloning properly setup git-svn repos from github
Diffstat (limited to 'MgaRepo/commands')
-rw-r--r--MgaRepo/commands/github.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/MgaRepo/commands/github.py b/MgaRepo/commands/github.py
index c2fd188..3d600bc 100644
--- a/MgaRepo/commands/github.py
+++ b/MgaRepo/commands/github.py
@@ -17,6 +17,9 @@ Examples:
mgarepo github import existingpkg
mgarepo github import svn://svn.mageia.org/svn/packages/cauldron/existingpkg
"""
+def github_clone(pkg, **kwargs):
+ github = GitHub()
+ github.clone_repository(pkg)
def github_import(target=".", **kwargs):
github = GitHub()
@@ -34,7 +37,7 @@ def parse_options():
opts.func = globals().get("github_"+args[0], None)
if args[0] == "import":
opts.target = args[1]
- elif args[0] == "delete":
+ elif args[0] == "delete" or args[0] == "clone":
opts.pkg = args[1]
else:
raise Error("invalid arguments: %s" % str(args))