~launchpad-pqm/launchpad/devel

3880.3.1 by Julian Edwards
First stab at copying binary packages in copy-package.py in addition to the
1
#!/usr/bin/python2.4
8687.15.22 by Karl Fogel
Add the copyright header block to the remaining .py files.
2
#
3
# Copyright 2009 Canonical Ltd.  This software is licensed under the
4
# GNU Affero General Public License version 3 (see the file LICENSE).
5
6455.2.7 by Celso Providelo
Improving tests and as a bonus fixing bug #240702 (unembargo-package.py doesn't handle architecture-independent binaries correctly).
6
# pylint: disable-msg=W0403
8687.15.22 by Karl Fogel
Add the copyright header block to the remaining .py files.
7
3880.2.4 by Celso Providelo
landing publishing API for copying and script right name.
8
"""Copy publications across suites."""
3880.2.1 by Celso Providelo
checkpoint ...
9
10
import _pythonpath
11
4687.5.18 by Celso Providelo
more review comments, r=salgado.
12
from canonical.config import config
8426.3.4 by Celso Providelo
Another importing order issue.
13
from lp.soyuz.scripts.packagecopier import PackageCopier
3880.2.6 by Celso Providelo
Fix code issues and move it to library place.
14
3880.2.1 by Celso Providelo
checkpoint ...
15
16
if __name__ == '__main__':
4687.5.18 by Celso Providelo
more review comments, r=salgado.
17
    script = PackageCopier(
18
        'copy-package', dbuser=config.archivepublisher.dbuser)
3880.2.1 by Celso Providelo
checkpoint ...
19
    script.lock_and_run()
20