~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/scripts/packagecopier.py

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-09-21 03:09:33 UTC
  • mfrom: (7675.1045.811 db-devel)
  • Revision ID: launchpad@pqm.canonical.com-20110921030933-mfkdkkkb99sskvrt
Merging db-stable at revno 10994

Show diffs side-by-side

added added

removed removed

Lines of Context:
642
642
                source, archive, destination_series, pocket,
643
643
                include_binaries, override, close_bugs=close_bugs,
644
644
                create_dsd_job=create_dsd_job,
645
 
                close_bugs_since_version=old_version, creator=person)
 
645
                close_bugs_since_version=old_version)
646
646
            if send_email:
647
647
                notify(
648
648
                    person, source.sourcepackagerelease, [], [], archive,
659
659
 
660
660
def _do_direct_copy(source, archive, series, pocket, include_binaries,
661
661
                    override=None, close_bugs=True, create_dsd_job=True,
662
 
                    close_bugs_since_version=None, creator=None):
 
662
                    close_bugs_since_version=None):
663
663
    """Copy publishing records to another location.
664
664
 
665
665
    Copy each item of the given list of `SourcePackagePublishingHistory`
685
685
    :param close_bugs_since_version: If close_bugs is True,
686
686
        then this parameter says which changelog entries to parse looking
687
687
        for bugs to close.  See `close_bugs_for_sourcepackagerelease`.
688
 
    :param creator: the requester `IPerson`.
689
688
 
690
689
    :return: a list of `ISourcePackagePublishingHistory` and
691
690
        `BinaryPackagePublishingHistory` corresponding to the copied
715
714
                "More than one override encountered, something is wrong.")
716
715
            override = overrides[0]
717
716
        source_copy = source.copyTo(
718
 
            series, pocket, archive, override, create_dsd_job=create_dsd_job,
719
 
            creator=creator)
 
717
            series, pocket, archive, override, create_dsd_job=create_dsd_job)
720
718
        if close_bugs:
721
719
            close_bugs_for_sourcepublication(
722
720
                source_copy, close_bugs_since_version)