~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-26 14:57:54 UTC
  • mfrom: (13794.1.12 bug-832661)
  • Revision ID: launchpad@pqm.canonical.com-20110826145754-364nkd1s6ofz4nqd
[r=adeuring][bug=832661] Create DSDJs from requestDeletion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3799
3799
            naked_bpph.datepublished = UTC_NOW
3800
3800
        return bpph
3801
3801
 
 
3802
    def makeSPPHForBPPH(self, bpph):
 
3803
        """Produce a `SourcePackagePublishingHistory` to match `bpph`.
 
3804
 
 
3805
        :param bpph: A `BinaryPackagePublishingHistory`.
 
3806
        :return: A `SourcePackagePublishingHistory` stemming from the same
 
3807
            source package as `bpph`, published into the same distroseries,
 
3808
            pocket, and archive.
 
3809
        """
 
3810
        # JeroenVermeulen 2011-08-25, bug=834370: Julian says this isn't
 
3811
        # very complete, and ignores architectures.  Improve so we can
 
3812
        # remove more of our reliance on the SoyuzTestPublisher.
 
3813
        bpr = bpph.binarypackagerelease
 
3814
        spph = self.makeSourcePackagePublishingHistory(
 
3815
            distroseries=bpph.distroarchseries.distroseries,
 
3816
            sourcepackagerelease=bpr.build.source_package_release,
 
3817
            pocket=bpph.pocket, archive=bpph.archive)
 
3818
        return spph
 
3819
 
3802
3820
    def makeBinaryPackageName(self, name=None):
3803
3821
        """Make an `IBinaryPackageName`."""
3804
3822
        if name is None: