comparison bin/reportstatus.py @ 78:9a602d8eaa60

initial revision of the subversion repository
author Thomas Arendsen Hein <thomas@intevation.de>
date Tue, 24 Apr 2012 17:13:43 +0200
parents
children 123e9a5f31fa
comparison
equal deleted inserted replaced
77:f0aa5a8af056 78:9a602d8eaa60
1 #! /usr/bin/python2.4
2 # Copyright (C) 2007 by Intevation GmbH
3 # Authors:
4 # Bernhard Herzog <bh@intevation.de>
5 #
6 # This program is free software under the GPL (>=v2)
7 # Read the file COPYING coming with the software for details.
8
9 """Reports the current status of the tree packager"""
10
11 import sys
12 import os
13 from optparse import OptionParser
14
15 import treepkgcmd
16 from treepkg.options import create_parser
17 from treepkg.report import get_packager_group, prepare_report
18
19 def parse_commandline():
20 return create_parser().parse_args()
21
22
23 def report_text(group):
24 report = prepare_report(group)
25 for revno, row in report.revisions:
26 for col in row:
27 if col:
28 print "%s %s: %s" % (col.name, revno, col.status.desc)
29 if col.status.start:
30 print " Start:", col.status.start
31 print " Stop:", col.status.stop
32 print
33
34 def main():
35 options, args = parse_commandline()
36 group = get_packager_group(options.config_file)
37 report_text(group)
38
39
40 main()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)