10637.3.1
by Guilherme Salgado
Use the default python version instead of a hard-coded version |
1 |
#!/usr/bin/python -S
|
8687.15.22
by Karl Fogel
Add the copyright header block to the remaining .py 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 |
||
7215.3.1
by Celso Providelo
reoganizing files and tests before starting the code refactoring. |
6 |
# Stop lint warning about relative import:
|
7 |
# pylint: disable-msg=W0403
|
|
8687.15.22
by Karl Fogel
Add the copyright header block to the remaining .py files. |
8 |
|
3024.3.8
by James Troup
Initial port of teri/alicia. |
9 |
"""Change the component of a package.
|
10 |
||
11 |
This tool allows you to change the component of a package. Changes won't
|
|
12 |
take affect till the next publishing run.
|
|
13 |
"""
|
|
7215.3.1
by Celso Providelo
reoganizing files and tests before starting the code refactoring. |
14 |
|
3024.3.8
by James Troup
Initial port of teri/alicia. |
15 |
import _pythonpath |
16 |
||
14605.1.1
by Curtis Hovey
Moved canonical.config to lp.services. |
17 |
from lp.services.config import config |
8486.12.1
by Celso Providelo
Fixing the 'fixable' scripts and adding a checker with the really-broken ones blacklisted. |
18 |
from lp.soyuz.scripts.changeoverride import ChangeOverride |
3024.3.8
by James Troup
Initial port of teri/alicia. |
19 |
|
14612.2.7
by William Grant
scripts |
20 |
|
3024.3.8
by James Troup
Initial port of teri/alicia. |
21 |
if __name__ == '__main__': |
7215.3.2
by Celso Providelo
working version of the script based on SoyuzScript. Pending test update. |
22 |
script = ChangeOverride( |
23 |
'change-override', dbuser=config.archivepublisher.dbuser) |
|
24 |
script.lock_and_run() |