source: soft/build_system/build_system/repsys/tags/V1_6_18/RepSys/commands/sync.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: 677 bytes
Line 
1#!/usr/bin/python
2from RepSys.command import *
3from RepSys.rpmutil import sync
4
5HELP = """\
6Usage: repsys sync
7
8Will add or removed from the working copy new files added or removed
9from the spec file.
10
11"No changes are commited."
12
13Options:
14    --dry-run    Print results without changing the working copy
15    -h           Show this message
16
17Examples:
18    repsys sync
19"""
20
21def parse_options():
22    parser = OptionParser(help=HELP)
23    parser.add_option("--dry-run", dest="dryrun", default=False,
24            action="store_true")
25    opts, args = parser.parse_args()
26    if len(args):
27        opts.target = args[0]
28    return opts
29
30def main():
31    do_command(parse_options, sync)
Note: See TracBrowser for help on using the repository browser.