~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.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
11411.6.17 by Julian Edwards
fix another circular import
14
# Avoid crappy circular imports caused by
15
# canonical.launchpad.interfaces.__init__
16
import canonical.launchpad.interfaces
17
7365.3.1 by Celso Providelo
Implementing a cronscript to create missing PPA signing keys.
18
from canonical.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.
19
from lp.soyuz.scripts.ppakeygenerator import PPAKeyGenerator
7365.3.1 by Celso Providelo
Implementing a cronscript to create missing PPA signing keys.
20
21
22
if __name__ == '__main__':
23
    script = PPAKeyGenerator(
24
        "ppa-generate-keys", config.archivepublisher.dbuser)
25
    script.lock_and_run()
26