]>
git.ipfire.org Git - people/jschlag/pbs.git/blob - src/scripts/pakfire-build-service
94aa7f7de3de4a99bfa4c626ce56ea9948b4b7ec
5 # Use tornado's logging options
7 tornado
.options
.parse_command_line()
9 import pakfire
.buildservice
12 def __init__(self
, *args
, **kwargs
):
14 self
.backend
= pakfire
.buildservice
.Backend(*args
, **kwargs
)
18 "cleanup-uploads" : self
.backend
.uploads
.cleanup
,
20 # Sends all queued messages
21 "process-message-queue" : self
.backend
.messages
.process_queue
,
24 def __call__(self
, *args
):
25 if not len(args
) >= 2:
26 print >>sys
.stderr
, "Insufficient number of arguments"
30 basename
= args
.pop(0)
35 command
= self
._commands
[command
]
37 print >>sys
.stderr
, "Command not found: %s" % command
43 # Exit with error code