~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
7675.458.2 by Paul Hummer
Added scan_branches cronscript.
2
#
7675.458.9 by Paul Hummer
Fixed a copyright notice and a docstring.
3
# Copyright 2010 Canonical Ltd.  This software is licensed under the
7675.458.2 by Paul Hummer
Added scan_branches cronscript.
4
# GNU Affero General Public License version 3 (see the file LICENSE).
5
6
"""Scan branches for new revisions."""
7
8
__metaclass__ = type
9
10
import _pythonpath
11
12
from lp.services.job.runner import JobCronScript
13
from lp.code.interfaces.branchjob import IBranchScanJobSource
14
15
16
class RunScanBranches(JobCronScript):
17
    """Run BranchScanJob jobs."""
18
19
    config_name = 'branchscanner'
20
    source_interface = IBranchScanJobSource
21
22
23
if __name__ == '__main__':
24
    script = RunScanBranches()
25
    script.lock_and_run()