10637.3.1
by Guilherme Salgado
Use the default python version instead of a hard-coded version |
1 |
#!/usr/bin/python -S
|
8687.15.7
by Karl Fogel
Add the copyright header block to more 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).
|
|
7365.3.1
by Celso Providelo
Implementing a cronscript to create missing PPA signing keys. |
5 |
|
6 |
# pylint: disable-msg=C0103,W0403
|
|
7 |
||
8 |
"""A cron script that generate missing PPA signing keys."""
|
|
9 |
||
10 |
__metaclass__ = type |
|
11 |
||
12 |
import _pythonpath |
|
13 |
||
14605.1.1
by Curtis Hovey
Moved canonical.config to lp.services. |
14 |
from lp.services.config import config |
8294.6.1
by Julian Edwards
First stab at code-reorg. Still got a discrepancy on stuff I assigned to registry but not migrated yet. |
15 |
from lp.soyuz.scripts.ppakeygenerator import PPAKeyGenerator |
7365.3.1
by Celso Providelo
Implementing a cronscript to create missing PPA signing keys. |
16 |
|
17 |
||
18 |
if __name__ == '__main__': |
|
19 |
script = PPAKeyGenerator( |
|
20 |
"ppa-generate-keys", config.archivepublisher.dbuser) |
|
21 |
script.lock_and_run() |
|
22 |