Part of lp.soyuz.scripts.initialize_distroseries View In Hierarchy
Copy in all of the parents distroseries's configuration. This includes all configuration for distroseries as well as distroarchseries, publishing and all publishing records for sources and binaries.
Method | __init__ | Undocumented |
Method | check | Undocumented |
Method | initialize | Undocumented |
Method | _checkArchindep | Undocumented |
Method | _checkPublisherConfig | A series cannot be initialized if it has no publisher config |
Method | _checkParents | If self.first_derivation, the parents list cannot be empty. |
Method | _checkBuilds | Assert there are no pending builds for the given parent series. |
Method | _checkQueue | Assert upload queue is empty on the given parent series. |
Method | _checkSeries | Undocumented |
Method | _set_parents | Undocumented |
Method | _set_initialized | Undocumented |
Method | _has_same_parents_as_previous_series | Undocumented |
Method | _create_dsds | Undocumented |
Method | _copy_dsds_from_previous_series | Undocumented |
Method | _create_dsd_jobs | Undocumented |
Method | _copy_configuration | Undocumented |
Method | _copy_architectures | Undocumented |
Method | _set_nominatedarchindep | Undocumented |
Method | _potential_nominated_arches | Undocumented |
Method | _copy_packages | Undocumented |
Method | _use_cloner | Returns True if it's safe to use the packagecloner (as opposed |
Method | _create_source_names_by_parent | If only a subset of the packagesets was selected to be copied, |
Method | _copy_publishing_records | Copy the publishing records from the parent arch series |
Method | _rescore_rebuilds | Rescore the passed builds so that they have an appropriately low |
Method | _copy_component_section_and_format_selections | Copy the section, component and format selections from the parents |
Method | _copy_packaging_links | Copy the packaging links from the parent series to this one. |
Method | _copy_packagesets | Copy packagesets from the parent distroseries. |
Method | _copy_pocket_permissions | Copy per-distroseries/pocket permissions from the parent series. |
Only cares about the RELEASE, SECURITY, UPDATES and PROPOSED pockets, which are the only ones inherited via the initializeFromParent method. Restrict the check to the select architectures (if applicable). Restrict the check to the selected packages if a limited set of packagesets is used by the initialization.
Only cares about the RELEASE, SECURITY, UPDATES and PROPOSED pockets, which are the only ones inherited via the initializeFromParent method. Restrict the check to the selected packages if a limited set of packagesets is used by the initialization.
Returns True if it's safe to use the packagecloner (as opposed to using the packagecopier). We use two different ways to copy packages: - the packagecloner: fast but not conflict safe. - the packagecopier: slow but performs lots of checks to avoid creating conflicts. 1. We'll use the cloner: If this is not a first initialization. And If: 1.a If the archives are different and the target archive is empty use the cloner. Or 1.b. If the archives are the same and the target series is empty use the cloner. 2. Otherwise use the copier.
source_names_by_parent.get(parent) can be 3 different things: - None: this means that no specific packagesets where selected for the initialization. In this case we need to consider all the packages in this parent. - []: this means that some specific packagesets where selected for the initialization but none in this parent. We can skip this parent for all the copy/check operations. - [name1, ...]: this means that some specific packagesets were selected for the initialization and some are in this parent so the list of packages to consider in not empty.
We copy all PENDING and PUBLISHED records as PENDING into our own publishing records.
We copy only the RELEASE pocket in the PRIMARY archive.