~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.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
4687.5.18 by Celso Providelo
more review comments, r=salgado.
17
from canonical.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
20
if __name__ == '__main__':
7215.3.2 by Celso Providelo
working version of the script based on SoyuzScript. Pending test update.
21
    script = ChangeOverride(
22
        'change-override', dbuser=config.archivepublisher.dbuser)
23
    script.lock_and_run()