~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
3504.1.56 by kiko
Fix for bug 53793: CVE update script dying with syntax error. Grab the CVE listing from the right URL now, and make the location configurable via canonical.config
15
from canonical.config import config
8523.3.1 by Gavin Panella
Bugs tree reorg after automated migration.
16
from lp.bugs.scripts.cveimport import CVEUpdater
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