~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
10147.5.1 by Julian Edwards
First cut
2
#
10147.5.13 by Julian Edwards
more cleanups from Brad's review
3
# Copyright 2010 Canonical Ltd.  This software is licensed under the
10147.5.1 by Julian Edwards
First cut
4
# GNU Affero General Public License version 3 (see the file LICENSE).
5
6
# pylint: disable-msg=C0103,W0403
7
8
import _pythonpath
9
12506.2.1 by William Grant
Rename ppa-add-missing-builds to add-missing-builds. It will soon work for any archive.
10
from lp.soyuz.scripts.add_missing_builds import AddMissingBuilds
10147.5.1 by Julian Edwards
First cut
11
from canonical.config import config
12
13
if __name__ == "__main__":
12506.2.1 by William Grant
Rename ppa-add-missing-builds to add-missing-builds. It will soon work for any archive.
14
    script = AddMissingBuilds(
15
        "add-missing-builds", dbuser=config.uploader.dbuser)
10147.5.6 by Julian Edwards
Re-factor code to look like a normal LP script.
16
    script.lock_and_run()