]>
git.ipfire.org Git - people/jschlag/pbs.git/blob - src/scripts/pakfire-build-service
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 "check-mirrors" : self
.backend
.mirrors
.check
,
21 "cleanup-files" : self
.backend
.cleanup_files
,
24 "cleanup-sessions" : self
.backend
.sessions
.cleanup
,
27 "cleanup-uploads" : self
.backend
.uploads
.cleanup
,
29 # Sends all queued messages
30 "process-message-queue" : self
.backend
.messages
.process_queue
,
33 "pull-sources" : self
.backend
.sources
.pull
,
35 # Send bug updates to Bugzilla
36 "send-bug-updates" : self
.backend
.bugzilla
.send_all
,
39 def __call__(self
, *args
):
40 if not len(args
) >= 2:
41 print >>sys
.stderr
, "Insufficient number of arguments"
45 basename
= args
.pop(0)
50 command
= self
._commands
[command
]
52 print >>sys
.stderr
, "Command not found: %s" % command
58 # Exit with error code