annotate bin/treepkginfo.py @ 392:e2afbd3c2bf1 treepkg-status

write first info about tracks
author Bjoern Ricks <bricks@intevation.de>
date Thu, 08 Jul 2010 16:11:13 +0000
parents
children 04310ad0063e
rev   line source
392
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
1 #! /usr/bin/python
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
2 # Copyright (C) 2010 by Intevation GmbH
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
3 # Authors:
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
4 # Bjoern Ricks <bjoern.ricks@intevation.de>
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
5 #
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
6 # This program is free software under the GPL (>=v2)
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
7 # Read the file COPYING coming with the software for details.
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
8
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
9 """Receive the status of a treepkg"""
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
10
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
11 import treepkgcmd
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
12
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
13 from treepkg.info import status
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
14
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
15 from treepkg.options import create_parser
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
16
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
17 def parse_commandline():
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
18 parser = create_parser()
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
19
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
20 return parser.parse_args()
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
21
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
22 def main():
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
23 options, args = parse_commandline()
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
24
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
25 tpkginfo = status.TreepkgInfo(options.config_file)
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
26
e2afbd3c2bf1 write first info about tracks
Bjoern Ricks <bricks@intevation.de>
parents:
diff changeset
27 main()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)