1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/usr/bin/python2.4
# Copyright 2007 Canonical Ltd. All rights reserved.
# pylint: disable-msg=C0103,W0403
"""Retrying build in MANUALDEPWAIT state.
This procedure aims to retry builds in all supported series and architectures
in the given distribution which have failed due to unsatisfied
build-dependencies.
It checks every build in this state, including PPA and PARTNER ones, and
retries the ones which got their dependencies published after they were tried.
Unlike the other buildd-cronscripts, this one it targeted to run via cron
in parallel with other tasks happening in build farm.
As an optimization, distroseries from the selected distribution which are not
supported anymore (OBSOLETE status) are skipped.
"""
__metaclass__ = type
import _pythonpath
from canonical.config import config
from canonical.launchpad.scripts.buildd import RetryDepwait
if __name__ == '__main__':
script = RetryDepwait(
'retry-depwait', dbuser=config.builddmaster.dbuser)
script.lock_or_quit()
try:
script.run()
finally:
script.unlock()
|