diff options
author | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-06-30 22:51:36 +0200 |
---|---|---|
committer | Per Øyvind Karlsen <proyvind@moondrake.org> | 2016-06-30 22:51:36 +0200 |
commit | 6d64a6bebf611be4c273c839df8dee3ede5917fe (patch) | |
tree | 44e86166e43f8440db03c117bbf7dc4a5d368e1d /MgaRepo/commands/githubimport.py | |
parent | ed063a9693ce0510f7f8477c329cba89a46a1fdc (diff) | |
download | mgarepo-6d64a6bebf611be4c273c839df8dee3ede5917fe.tar mgarepo-6d64a6bebf611be4c273c839df8dee3ede5917fe.tar.gz mgarepo-6d64a6bebf611be4c273c839df8dee3ede5917fe.tar.bz2 mgarepo-6d64a6bebf611be4c273c839df8dee3ede5917fe.tar.xz mgarepo-6d64a6bebf611be4c273c839df8dee3ede5917fe.zip |
change githubimport into a github command with several ~sub-commands
Diffstat (limited to 'MgaRepo/commands/githubimport.py')
-rw-r--r-- | MgaRepo/commands/githubimport.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/MgaRepo/commands/githubimport.py b/MgaRepo/commands/githubimport.py deleted file mode 100644 index afc73c5..0000000 --- a/MgaRepo/commands/githubimport.py +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/python -from MgaRepo import Error -from MgaRepo.command import * -from MgaRepo.GitHub import GitHub -import getopt -import sys - -HELP = """\ -Usage: mgarepo github-import [OPTIONS] URL - -Import a git-svn cloned repository to github - -Options: - -h Show this message - -Examples: - mgarepo githubimport existingpkg - mgarepo githubimport svn+ssh://svn.mageia.org/svn/packages/cauldron/existingpkg -""" - -def githubimport(target="."): - github = GitHub() - github.import_package(target) - -def parse_options(): - parser = OptionParser(help=HELP) - opts, args = parser.parse_args() - return opts - -def main(): - do_command(parse_options, githubimport) - -# vim:et:ts=4:sw=4 |