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 |
---|
2 | from RepSys import Error |
---|
3 | from RepSys.command import * |
---|
4 | from RepSys.rpmutil import check_changed |
---|
5 | import getopt |
---|
6 | import sys |
---|
7 | |
---|
8 | HELP = """\ |
---|
9 | Usage: repsys changed [OPTIONS] URL |
---|
10 | |
---|
11 | Options: |
---|
12 | -a Check all packages in given URL |
---|
13 | -s Show differences |
---|
14 | -h Show this message |
---|
15 | |
---|
16 | Examples: |
---|
17 | repsys changed http://repos/svn/cnc/snapshot/foo |
---|
18 | repsys changed -a http://repos/svn/cnc/snapshot |
---|
19 | """ |
---|
20 | |
---|
21 | def 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 | |
---|
32 | def 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.