source: soft/build_system/build_system/repsys/tags/V1_6_16/RepSys/commands/changed.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: 880 bytes
Line 
1#!/usr/bin/python
2from RepSys import Error
3from RepSys.command import *
4from RepSys.rpmutil import check_changed
5import getopt
6import sys
7
8HELP = """\
9Usage: repsys changed [OPTIONS] URL
10
11Options:
12    -a      Check all packages in given URL
13    -s      Show differences
14    -h      Show this message
15
16Examples:
17    repsys changed http://repos/svn/cnc/snapshot/foo
18    repsys changed -a http://repos/svn/cnc/snapshot
19"""
20
21def parse_options():
22    parser = OptionParser(help=HELP)
23    parser.add_option("-a", dest="all", action="store_true")
24    parser.add_option("-s", dest="show", action="store_true")
25    opts, args = parser.parse_args()
26    if len(args) != 1:
27        raise Error, "invalid arguments"
28    opts.pkgdirurl = default_parent(args[0])
29    opts.verbose = 1 # Unconfigurable
30    return opts
31
32def main():
33    do_command(parse_options, check_changed)
34
35# vim:et:ts=4:sw=4
Note: See TracBrowser for help on using the repository browser.