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 |
||
8426.3.12
by Celso Providelo
lint issues. |
6 |
# pylint: disable-msg=W0403
|
8687.15.22
by Karl Fogel
Add the copyright header block to the remaining .py files. |
7 |
|
4687.5.2
by Celso Providelo
Implementing lp-remove-package.py and SoyuzScript base class. Pending tests. |
8 |
"""Launchpad version of ftpmaster-tools/remove-package.py."""
|
9 |
||
10 |
||
11 |
import _pythonpath |
|
12 |
||
4687.5.18
by Celso Providelo
more review comments, r=salgado. |
13 |
from canonical.config import config |
8426.3.6
by Celso Providelo
Another misleading import. |
14 |
from lp.soyuz.scripts.ftpmaster import PackageRemover |
4687.5.2
by Celso Providelo
Implementing lp-remove-package.py and SoyuzScript base class. Pending tests. |
15 |
|
16 |
||
17 |
if __name__ == '__main__': |
|
4687.5.18
by Celso Providelo
more review comments, r=salgado. |
18 |
script = PackageRemover( |
19 |
'lp-remove-package', dbuser=config.archivepublisher.dbuser) |
|
4687.5.2
by Celso Providelo
Implementing lp-remove-package.py and SoyuzScript base class. Pending tests. |
20 |
script.lock_and_run() |
21 |