~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.22 by Karl Fogel
Add the copyright header block to the remaining .py files.
2
#
9893.9.14 by Stuart Bishop
delint
3
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
8687.15.22 by Karl Fogel
Add the copyright header block to the remaining .py files.
4
# GNU Affero General Public License version 3 (see the file LICENSE).
5
2733 by Canonical.com Patch Queue Manager
Upload processor. r=stevea
6
"""Upload processor.
7
8
Given a bunch of context information and a bunch of files, process them as
9
an upload to a distro/whatever within the launchpad.
10
"""
11
8447.1.5 by Jonathan Lange
Should never have dropped this.
12
import _pythonpath
13
8294.6.5 by Julian Edwards
Fix a bunch of circular imports, but there's still one I can't find.
14
from lp.soyuz.scripts.soyuz_process_upload import ProcessUpload
5294.1.3 by Jeroen Vermeulen
Addressed BjornT's points prior to resuming formal review.
15
3023.4.1 by Christian Reis
Handle review comments from Salgado and Spiv
16
2733 by Canonical.com Patch Queue Manager
Upload processor. r=stevea
17
if __name__ == '__main__':
9893.9.12 by Stuart Bishop
process-upload.py connects as a distinct database user and is fragile
18
    script = ProcessUpload('process-upload', dbuser='process_upload')
3691.348.26 by kiko
Convert process-upload.py to use a lockfile that varies according to which upload policy is being used.
19
    script.lock_and_run()