10637.3.1
by Guilherme Salgado
Use the default python version instead of a hard-coded version |
1 |
#!/usr/bin/python -S
|
8687.15.7
by Karl Fogel
Add the copyright header block to more files. |
2 |
#
|
9893.9.14
by Stuart Bishop
delint |
3 |
# Copyright 2009-2011 Canonical Ltd. This software is licensed under the
|
8687.15.7
by Karl Fogel
Add the copyright header block to more files. |
4 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
5 |
||
5152.5.6
by Celso Providelo
Restoring retry-depwait feature as another cronscript and with base methods implemented in IBuild. |
6 |
# pylint: disable-msg=C0103,W0403
|
7 |
"""Retrying build in MANUALDEPWAIT state.
|
|
8 |
||
9 |
This procedure aims to retry builds in all supported series and architectures
|
|
10 |
in the given distribution which have failed due to unsatisfied
|
|
11 |
build-dependencies.
|
|
12 |
||
13 |
It checks every build in this state, including PPA and PARTNER ones, and
|
|
5152.5.7
by Celso Providelo
applying review comments, r=intelletronica. |
14 |
retries the ones which got their dependencies published after they were tried.
|
15 |
||
16 |
Unlike the other buildd-cronscripts, this one it targeted to run via cron
|
|
17 |
in parallel with other tasks happening in build farm.
|
|
18 |
||
19 |
As an optimization, distroseries from the selected distribution which are not
|
|
20 |
supported anymore (OBSOLETE status) are skipped.
|
|
5152.5.6
by Celso Providelo
Restoring retry-depwait feature as another cronscript and with base methods implemented in IBuild. |
21 |
"""
|
22 |
||
23 |
__metaclass__ = type |
|
24 |
||
25 |
import _pythonpath |
|
26 |
||
8294.6.1
by Julian Edwards
First stab at code-reorg. Still got a discrepancy on stuff I assigned to registry but not migrated yet. |
27 |
from lp.soyuz.scripts.buildd import RetryDepwait |
5152.5.6
by Celso Providelo
Restoring retry-depwait feature as another cronscript and with base methods implemented in IBuild. |
28 |
|
14612.2.8
by William Grant
cronscripts |
29 |
|
5152.5.6
by Celso Providelo
Restoring retry-depwait feature as another cronscript and with base methods implemented in IBuild. |
30 |
if __name__ == '__main__': |
9893.9.9
by Stuart Bishop
buildd-retry-depwait.py connects as a distinct database user |
31 |
script = RetryDepwait('retry-depwait', dbuser='retry_depwait') |
5152.5.6
by Celso Providelo
Restoring retry-depwait feature as another cronscript and with base methods implemented in IBuild. |
32 |
script.lock_or_quit() |
33 |
try: |
|
34 |
script.run() |
|
35 |
finally: |
|
36 |
script.unlock() |