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