~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
class IDistroSeriesDifferenceJobSource(IJobSource):
95
95
    """An `IJob` for creating `DistroSeriesDifference`s."""
96
96
 
97
 
    def createForPackagePublication(distroseries, sourcepackagename, pocket):
 
97
    def createForPackagePublication(derivedseries, sourcepackagename, pocket,
 
98
                                    parent_series=None):
98
99
        """Create jobs as appropriate for a given status publication.
99
100
 
100
 
        :param distroseries: A `DistroSeries` that is assumed to be
101
 
            derived from another one.
 
101
        :param derived_series: A `DistroSeries` that is assumed to be
 
102
            derived from `parent_series`.
102
103
        :param sourcepackagename: A `SourcePackageName` that is being
103
 
            published in `distroseries`.
 
104
            published in `derived_series` or `parent_series`.
104
105
        :param pocket: The `PackagePublishingPocket` for the publication.
 
106
        :param parent_series: The parent `DistroSeries` whose version of
 
107
            `sourcepackagename` is to be compared with that in
 
108
            `derived_series`.
 
109
        :return: An iterable of `DistroSeriesDifferenceJob`.
105
110
        """
 
111
        # XXX JeroenVermeulen 2011-05-26 bug=758906: Make parent_series
 
112
        # mandatory as part of multi-parent support.
106
113
 
107
114
    def getPendingJobsForDifferences(derived_series, distroseriesdifferences):
108
115
        """Find `DistroSeriesDifferenceJob`s for `DistroSeriesDifference`s.
117
124
 
118
125
 
119
126
class IDistroSeriesDifferenceJob(IRunnableJob):
120
 
        """A Job that performs actions related to DSDs."""
 
127
    """A `Job` that performs actions related to `DistroSeriesDifference`s."""