~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/testing/factory.py

[r=julian-edwards][bug=800641] Ensure that the queue tool can set
        overrides on package copy jobs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3430
3430
        return upload
3431
3431
 
3432
3432
    def makeCopyJobPackageUpload(self, distroseries=None,
3433
 
                                 sourcepackagename=None):
 
3433
                                 sourcepackagename=None, target_pocket=None):
3434
3434
        """Make a `PackageUpload` with a `PackageCopyJob` attached."""
3435
3435
        if distroseries is None:
3436
3436
            distroseries = self.makeDistroSeries()
3441
3441
            package_name=spr.sourcepackagename.name,
3442
3442
            package_version=spr.version,
3443
3443
            source_archive=spph.archive,
 
3444
            target_pocket=target_pocket,
3444
3445
            target_archive=distroseries.main_archive,
3445
3446
            target_distroseries=distroseries)
3446
3447
        job.addSourceOverride(SourceOverride(