l.s.s.p.ArchivePopulator(SoyuzScript) : class documentation

Part of lp.soyuz.scripts.populate_archive View In Hierarchy

Create a copy archive and populate it with packages.

The logic needed to create a copy archive, populate it with source packages and instantiate the builds required.

Method populateArchive Create archive, populate it with packages and builds.
Method mainTask Main function entry point.
Method add_my_options Parse command line arguments for copy archive creation/population.
Method setupLocation Setup PackageLocation for context distribution and suite.
Method _packageset_delta Perform a package set delta operation between two archives.

Inherited from SoyuzScript:

Method add_transaction_options Add SoyuzScript transaction-related options.
Method add_distro_options Add SoyuzScript distro-related options.
Method add_package_location_options Add SoyuzScript package location-related options.
Method add_archive_options Add SoyuzScript archive-related options.
Method waitForUserConfirmation Blocks the script flow waiting for a user confirmation.
Method finishProcedure Script finalization procedure.
Method main LaunchpadScript entry point.
Method _getUserConfirmation Use raw_input to collect user feedback.

Inherited from LaunchpadScript (via SoyuzScript):

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 populateArchive(self, from_archive, from_distribution, from_suite, from_user, component, to_distribution, to_suite, to_archive, to_user, reason, include_binaries, arch_tags, merge_copy_flag, packageset_delta_flag, packageset_tags, nonvirtualized):
Create archive, populate it with packages and builds.

Please note: if a component was specified for the origin then the same component must be used for the destination.

Parametersfrom_archivethe (optional) origin archive name.
from_distributionthe origin's distribution.
from_suitethe origin's suite.
from_userthe name of the origin PPA's owner.
componentthe origin's component.
to_distributiondestination distribution.
to_suitedestination suite.
to_archivedestination copy archive name.
to_userdestination archive owner name.
reasonreason for the package copy operation.
include_binarieswhether binaries should be copied as well.
arch_tagsarchitecture tags for which to create builds.
merge_copy_flagwhether this is a repeated population of an existing copy archive.
packageset_delta_flagonly show packages that are fresher or new in the origin archive. Do not copy anything.
packageset_tagslist of packagesets to limit the packages copied to.
def _packageset_delta(self, origin, destination):
Perform a package set delta operation between two archives.

No packages will be copied i.e. the destination archive will not be changed.

def mainTask(self):
Main function entry point.
def add_my_options(self):
Parse command line arguments for copy archive creation/population.
def setupLocation(self):
Setup PackageLocation for context distribution and suite.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.