Part of lp.soyuz.scripts.populate_archive View In Hierarchy
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. |
Please note: if a component was specified for the origin then the same component must be used for the destination.
| Parameters | from_archive | the (optional) origin archive name. |
| from_distribution | the origin's distribution. | |
| from_suite | the origin's suite. | |
| from_user | the name of the origin PPA's owner. | |
| component | the origin's component. | |
| to_distribution | destination distribution. | |
| to_suite | destination suite. | |
| to_archive | destination copy archive name. | |
| to_user | destination archive owner name. | |
| reason | reason for the package copy operation. | |
| include_binaries | whether binaries should be copied as well. | |
| arch_tags | architecture tags for which to create builds. | |
| merge_copy_flag | whether this is a repeated population of an existing copy archive. | |
| packageset_delta_flag | only show packages that are fresher or new in the origin archive. Do not copy anything. | |
| packageset_tags | list of packagesets to limit the packages copied to. |
No packages will be copied i.e. the destination archive will not be changed.