l.s.m.distroseriesdifferencejob : module documentation

Part of lp.soyuz.model

Job class to request generation or update of `DistroSeriesDifference`s.
Function make_metadata Return JSON metadata for a job on sourcepackagename_id.
Function create_job Create a DistroSeriesDifferenceJob for a given source package.
Function create_multiple_jobs Create `DistroSeriesDifferenceJob`s between parent and derived series.
Function find_waiting_jobs Look for pending DistroSeriesDifference jobs on a package.
Function may_require_job Might publishing this package require a new job?
Function has_package Does distroseries have the given source package?
Class DistroSeriesDifferenceJob A `Job` type for creating/updating `DistroSeriesDifference`s.
def make_metadata(sourcepackagename_id, parent_series_id):
Return JSON metadata for a job on sourcepackagename_id.
def create_job(derived_series, sourcepackagename, parent_series):
Create a DistroSeriesDifferenceJob for a given source package.
Parametersderived_seriesA DistroSeries that is assumed to be derived from another one.
sourcepackagenameThe SourcePackageName whose publication history has changed.
parent_seriesA DistroSeries that is a parent of derived_series. The difference is between the versions of sourcepackagename in parent_series and derived_series.
def create_multiple_jobs(derived_series, parent_series):
Create `DistroSeriesDifferenceJob`s between parent and derived series.

:param derived_series: A `DistroSeries` that is assumed to be derived
    from another one.
:param parent_series: A `DistroSeries` that is a parent of
    `derived_series`.
:return: A list of newly-created `DistributionJob` ids.
def find_waiting_jobs(derived_series, sourcepackagename, parent_series):
Look for pending DistroSeriesDifference jobs on a package.
def may_require_job(derived_series, sourcepackagename, parent_series):
Might publishing this package require a new job?

Use this to determine whether to create a new DistroSeriesDifferenceJob. The answer may possibly be conservatively wrong: the check is really only to save the job runner some unnecessary work, but we don't expect a bit of unnecessary work to be a big problem.

def has_package(distroseries, sourcepackagename):
Does distroseries have the given source package?
API Documentation for Launchpad, generated by pydoctor at 2018-10-19 00:00:06.