comparison bin/treepkginfo.py @ 413:94a6ae627b31 treepkg-status

implemented CacheDb to store copied Packages from build host
author Bjoern Ricks <bricks@intevation.de>
date Fri, 23 Jul 2010 16:40:38 +0000
parents 04310ad0063e
children 2d31eea39f70
comparison
equal deleted inserted replaced
412:58ecf7c0ecba 413:94a6ae627b31
17 def parse_commandline(): 17 def parse_commandline():
18 parser = create_parser() 18 parser = create_parser()
19 parser.set_defaults(newest=-1) 19 parser.set_defaults(newest=-1)
20 parser.add_option("--newest", type="int", 20 parser.add_option("--newest", type="int",
21 help=("Number of newest revisions to list.")) 21 help=("Number of newest revisions to list."))
22 parser.add_option("--only-successful", action="store_true",
23 help=("Show only successful builds", dest="success"))
22 parser.add_option("--pretty", action="store_true", help=("Show XML pretty" 24 parser.add_option("--pretty", action="store_true", help=("Show XML pretty"
23 " output.")) 25 " output."))
24 26
25 27
26 return parser.parse_args() 28 return parser.parse_args()
27 29
28 def main(): 30 def main():
29 options, args = parse_commandline() 31 options, args = parse_commandline()
30 32
31 tpkginfo = status.TreepkgInfo(options.config_file, options.newest) 33 tpkginfo = status.TreepkgInfo(options.config_file, options.newest,
34 option.success)
32 35
33 if options.pretty: 36 if options.pretty:
34 print tpkginfo.toxml().toprettyxml() 37 print tpkginfo.toxml().toprettyxml()
35 else: 38 else:
36 print tpkginfo.toxml().toxml() 39 print tpkginfo.toxml().toxml()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)