10637.3.1
by Guilherme Salgado
Use the default python version instead of a hard-coded version |
1 |
#!/usr/bin/python -S
|
9644.2.8
by Paul Hummer
Added upgrade_branches.py cronscript |
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 |
||
6 |
"""Upgrade branches to the most recent format."""
|
|
7 |
||
8 |
__metaclass__ = type |
|
9 |
||
10 |
import _pythonpath |
|
11 |
||
14612.2.8
by William Grant
cronscripts |
12 |
from lp.code.interfaces.branchjob import IBranchUpgradeJobSource |
9644.2.8
by Paul Hummer
Added upgrade_branches.py cronscript |
13 |
from lp.services.job.runner import JobCronScript |
14 |
||
15 |
||
16 |
class RunUpgradeBranches(JobCronScript): |
|
7675.458.9
by Paul Hummer
Fixed a copyright notice and a docstring. |
17 |
"""Run UpgradeBranchJob jobs."""
|
9644.2.8
by Paul Hummer
Added upgrade_branches.py cronscript |
18 |
|
19 |
config_name = 'upgrade_branches' |
|
20 |
source_interface = IBranchUpgradeJobSource |
|
21 |
||
22 |
||
23 |
if __name__ == '__main__': |
|
24 |
script = RunUpgradeBranches() |
|
25 |
script.lock_and_run() |