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).
|
|
5188.4.2
by Julian Edwards
First cut at the new script. |
5 |
|
5188.4.24
by Julian Edwards
Sinzui's review comments. |
6 |
# Stop lint warning about relative import:
|
7 |
# pylint: disable-msg=W0403
|
|
8 |
||
5188.4.5
by Julian Edwards
Refactor and tidy up. |
9 |
"""Obsolete all packages in an obsolete distroseries.
|
10 |
||
11 |
This script will obsolete (schedule for removal) all published packages
|
|
12 |
in an obsolete distroseries.
|
|
5188.4.2
by Julian Edwards
First cut at the new script. |
13 |
"""
|
14 |
||
15 |
import _pythonpath |
|
16 |
||
14605.1.1
by Curtis Hovey
Moved canonical.config to lp.services. |
17 |
from lp.services.config import config |
8426.3.5
by Celso Providelo
another old style import |
18 |
from lp.soyuz.scripts.ftpmaster import ObsoleteDistroseries |
5188.4.2
by Julian Edwards
First cut at the new script. |
19 |
|
20 |
||
21 |
if __name__ == '__main__': |
|
22 |
script = ObsoleteDistroseries( |
|
23 |
'obsolete-distroseries', dbuser=config.archivepublisher.dbuser) |
|
24 |
script.lock_and_run() |
|
25 |