From ad7fb7807ceaee96521d779993a5e1b28650723f Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Tue, 11 Jan 2011 00:35:59 +0000 Subject: rename repsys to mgarepo, RepSys to MgaRepo, and update docs and examples for Mageia --- MgaRepo/commands/up.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 MgaRepo/commands/up.py (limited to 'MgaRepo/commands/up.py') diff --git a/MgaRepo/commands/up.py b/MgaRepo/commands/up.py new file mode 100644 index 0000000..646a79f --- /dev/null +++ b/MgaRepo/commands/up.py @@ -0,0 +1,22 @@ +from MgaRepo import Error +from MgaRepo.command import * +from MgaRepo.rpmutil import update + +HELP = """\ +Usage: mgarepo up [PATH] + +Update the package working copy and synchronize all binaries. + +Options: + -h help +""" + +def parse_options(): + parser = OptionParser(help=HELP) + opts, args = parser.parse_args() + if args: + opts.target = args[0] + return opts + +def main(): + do_command(parse_options, update) -- cgit v1.2.1