~launchpad-pqm/launchpad/devel

7675.1116.1 by Jeroen Vermeulen
Fairly direct bash-do-python conversion, minus hard-coded distro and paths.
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
6
"""Master distro publishing script."""
7
8
import _pythonpath
9
10
from canonical.config import config
11
from lp.archivepublisher.scripts.generate_contents_files import (
7675.1116.17 by Jeroen Vermeulen
Cosmetic.
12
    GenerateContentsFiles,
7675.1116.1 by Jeroen Vermeulen
Fairly direct bash-do-python conversion, minus hard-coded distro and paths.
13
    )
14
15
16
if __name__ == '__main__':
7675.1116.17 by Jeroen Vermeulen
Cosmetic.
17
    script = GenerateContentsFiles(
7675.1121.20 by Stuart Bishop
archivepublisher scripts to dedicated user
18
        "generate-contents", dbuser='generate_contents_files')
7675.1116.1 by Jeroen Vermeulen
Fairly direct bash-do-python conversion, minus hard-coded distro and paths.
19
    script.lock_and_run()