~launchpad-pqm/launchpad/devel

7675.1090.1 by Jeroen Vermeulen
Ported diff from previous, screwed-up branch (which mixed db-devel and devel).
1
#!/usr/bin/python -S
2
#
3
# Copyright 2011 Canonical Ltd.  This software is licensed under the
4
# GNU Affero General Public License version 3 (see the file LICENSE).
5
7675.1090.15 by Jeroen Vermeulen
Somre review changes.
6
"""Master distro publishing script."""
7675.1090.1 by Jeroen Vermeulen
Ported diff from previous, screwed-up branch (which mixed db-devel and devel).
7
8
import _pythonpath
9
10
from canonical.config import config
7675.1090.17 by Jeroen Vermeulen
More review changes.
11
from lp.archivepublisher.scripts.publish_ftpmaster import PublishFTPMaster
7675.1090.1 by Jeroen Vermeulen
Ported diff from previous, screwed-up branch (which mixed db-devel and devel).
12
13
14
if __name__ == '__main__':
15
    script = PublishFTPMaster(
16
        "publish-ftpmaster", dbuser=config.archivepublisher.dbuser)
17
    script.lock_and_run()