l.s.i.p.IPackageCloner(Interface) : interface documentation

Part of lp.soyuz.interfaces.packagecloner View In Hierarchy

Copies publishing history data across archives.
Method clonePackages Copy packages from origin to destination.
Method mergeCopy Copy packages that are obsolete or missing in target archive.
Method packageSetDiff Find packages that are obsolete or missing in target archive.
def clonePackages(origin, destination, distroarchseries_list=None, processors=None, sourcepackagenames=None):
Copy packages from origin to destination.

Copies the source packages, as well as the binary packages for the specified DistroArchSeries.

Parametersoriginthe location from which packages are to be copied.
destinationthe location to which the data is to be copied.
distroarchseries_listthe binary packages will be copied for the distroarchseries pairs specified (if any).
processorsthe processors that builds will be created for.
sourcepackagenamesthe source packages which are to be copied.
def mergeCopy(origin, destination):
Copy packages that are obsolete or missing in target archive.

Copy source packages from a given source archive that are obsolete or missing in the target archive.

Parametersoriginthe location from which the data is to be copied.
destinationthe location to which the data is to be copied.
def packageSetDiff(origin, destination, logger=None):
Find packages that are obsolete or missing in target archive.
Parametersoriginthe location with potentially new or fresher packages.
destinationthe target location.
diagnostic_outputan optional logger instance to which details of the source packages that are fresher or new in the origin archive will be logged.
Returnsa 2-tuple (fresher, new) where each element is a sequence of SourcePackagePublishingHistory keys of packages that are fresher and new in the origin archive respectively.
API Documentation for Launchpad, generated by pydoctor at 2019-10-19 00:00:05.