~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/interfaces/packagecloner.py

  • Committer: Julian Edwards
  • Date: 2011-07-28 20:46:18 UTC
  • mfrom: (13553 devel)
  • mto: This revision was merged to the branch mainline in revision 13555.
  • Revision ID: julian.edwards@canonical.com-20110728204618-tivj2wx2oa9s32bx
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
 
1
# Copyright 2009 Canonical Ltd.  This software is licensed under the
2
2
# GNU Affero General Public License version 3 (see the file LICENSE).
3
3
 
4
4
# pylint: disable-msg=E0211,E0213
17
17
class IPackageCloner(Interface):
18
18
    """Copies publishing history data across archives."""
19
19
 
20
 
    def clonePackages(origin, destination, distroarchseries_list=None,
21
 
                    proc_families=None, sourcepackagenames=None,
22
 
                    always_create=False):
23
 
        """Copy packages from origin to destination.
24
 
 
25
 
        Copies the source packages, as well as the binary packages for the
26
 
        specified `DistroArchSeries`.
 
20
    def clonePackages(
 
21
        origin, destination, distroarchseries_list=None,
 
22
        proc_families=None, sourcepackagenames=None,
 
23
        always_create=False, no_duplicates=False):
 
24
        """Copies the source packages from origin to destination as
 
25
        well as the binary packages for the DistroArchSeries specified.
27
26
 
28
27
        :param origin: the location from which packages are to be copied.
29
28
        :param destination: the location to which the data is to be copied.
34
33
        :param sourcepackagenames: the source packages which are to be
35
34
            copied.
36
35
        :param always_create: if builds should always be created.
 
36
        :param no_duplicates: if we should prevent the duplication of packages
 
37
            with identical sourcepackagename in the destination.
37
38
        """
38
39
 
39
40
    def mergeCopy(origin, destination):