l.r.s.p.PopulateDistroSeriesDiff(LaunchpadScript) : class documentation

Part of lp.registry.scripts.populate_distroseriesdiff View In Hierarchy

Populate DistroSeriesDifference for pre-existing differences.
Method add_my_options Register options specific to this script.
Method getDistroSeries Return the DistroSeries that are to be processed.
Method processDistroSeries Generate DistroSeriesDifference`s for `distroseries.
Method commit Commit (or if doing a dry run, abort instead).
Method listDerivedSeries Log all DistroSeries that the --all option would cover.
Method checkOptions Verify command-line options.
Method main Do the script's work.
Method update Call DistroSeriesDifference.update() where appropriate.

Inherited from LaunchpadScript:

Method __init__ Construct new LaunchpadScript.
Method handle_options Undocumented
Method name Enable subclasses to override with command-line arguments.
Method dbuser Enable subclasses to override with command-line arguments.
Method login Super-convenience method that avoids the import.
Method lockfilename Return lockfilename.
Method lockfilepath Undocumented
Method setup_lock Create lockfile.
Method lock_or_die Attempt to lock, and sys.exit(1) if the lock's already taken.
Method unlock Release the lock. Do this before going home.
Method run Actually run the script, executing zcml and initZopeless.
Method record_activity Hook to record script activity.
Method lock_and_run Call lock_or_die(), and then run() the script.
Method _init_zca Initialize the ZCA, this can be overridden for testing purposes.
Method _init_db Initialize the database transaction.
def add_my_options(self):
Register options specific to this script.
def getDistroSeries(self):
Return the DistroSeries that are to be processed.
def processDistroSeries(self, distroseries, parent):
Generate DistroSeriesDifference`s for `distroseries.
def commit(self):
Commit (or if doing a dry run, abort instead).
def listDerivedSeries(self):
Log all DistroSeries that the --all option would cover.
def checkOptions(self):
Verify command-line options.
def main(self):
Do the script's work.
def update(self, distroseries):
Call DistroSeriesDifference.update() where appropriate.

The DistroSeriesDifference records we create don't have their details filled out, such as base version or their diffs.

Only instances where the source package is published in both the parent series and the derived series need to have this done.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.