source: soft/build_system/build_system/repsys/tags/V1_6_18/RepSys/commands/create.py @ 1

Last change on this file since 1 was 1, checked in by fasma, 12 years ago

Initial Import from Mandriva's soft revision 224062 and package revision 45733

File size: 635 bytes
Line 
1#!/usr/bin/python
2from RepSys import Error
3from RepSys.command import *
4from RepSys.rpmutil import create_package
5import getopt
6import sys
7
8HELP = """\
9Usage: repsys create [OPTIONS] URL
10
11Options:
12    -h      Show this message
13
14Examples:
15    repsys create http://repos/svn/cnc/snapshot/newpkg
16"""
17
18def parse_options():
19    parser = OptionParser(help=HELP)
20    opts, args = parser.parse_args()
21    if len(args) != 1:
22        raise Error, "invalid arguments"
23    opts.pkgdirurl = default_parent(args[0])
24    opts.verbose = 1 # Unconfigurable
25    return opts
26
27def main():
28    do_command(parse_options, create_package)
29
30# vim:et:ts=4:sw=4
Note: See TracBrowser for help on using the repository browser.