~launchpad-pqm/launchpad/devel

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
#
3
# Copyright 2009 Canonical Ltd.  This software is licensed under the
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
27
from canonical.config import config
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.
28
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.
29
30
if __name__ == '__main__':
31
    script = RetryDepwait(
32
        'retry-depwait', dbuser=config.builddmaster.dbuser)
33
    script.lock_or_quit()
34
    try:
35
        script.run()
36
    finally:
37
        script.unlock()