~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).
2265 by Canonical.com Patch Queue Manager
[r=spiv,lifeless] po translation navigation fixes, and new-style cve support
5
4935.3.7 by Curtis Hovey
Added bad name suppression to cronscripts.
6
# pylint: disable-msg=C0103,W0403
2265 by Canonical.com Patch Queue Manager
[r=spiv,lifeless] po translation navigation fixes, and new-style cve support
7
2450 by Canonical.com Patch Queue Manager
[r=jamesh] rework cve structure, and general polish
8
"""A cron script that fetches the latest database of CVE details and ensures
9
that all of the known CVE's are fully registered in Launchpad."""
2265 by Canonical.com Patch Queue Manager
[r=spiv,lifeless] po translation navigation fixes, and new-style cve support
10
11
__metaclass__ = type
12
2263 by Canonical.com Patch Queue Manager
po translation page location fixes, and new-style cve support [r=spiv,lifeless]
13
import _pythonpath
2265 by Canonical.com Patch Queue Manager
[r=spiv,lifeless] po translation navigation fixes, and new-style cve support
14
14612.2.8 by William Grant
cronscripts
15
from lp.bugs.scripts.cveimport import CVEUpdater
14605.1.1 by Curtis Hovey
Moved canonical.config to lp.services.
16
from lp.services.config import config
2263 by Canonical.com Patch Queue Manager
po translation page location fixes, and new-style cve support [r=spiv,lifeless]
17
18
19
if __name__ == '__main__':
3691.348.13 by kiko
Convert a couple of cronscripts over to LaunchpadScript
20
    script = CVEUpdater("updatecve", config.cveupdater.dbuser)
21
    script.lock_and_run()
2263 by Canonical.com Patch Queue Manager
po translation page location fixes, and new-style cve support [r=spiv,lifeless]
22