repoman.models#
Data models: Repository, WizardState, FileFormat, and AvailabilityStatus.
- class FileFormat(*values)[source]#
Bases:
EnumOn-disk format of an APT source file.
ONE_LINE repos are automatically converted to DEB822 on the first save that sets a description, because the one-line format has no description field.
- DEB822 = 1#
- ONE_LINE = 2#
- class AvailabilityStatus(*values)[source]#
Bases:
EnumAvailability of a repository for a target Ubuntu codename.
CHECKING is an in-progress sentinel used only by the wizard UI — it is never written back to the Repository object. The background thread transitions directly from UNKNOWN to AVAILABLE, UNAVAILABLE, or (on network failure) UNKNOWN.
- UNKNOWN = 1#
- CHECKING = 2#
- AVAILABLE = 3#
- UNAVAILABLE = 4#
- SUITE_AGNOSTIC = 5#
- class Repository(source_file, file_format, types, uris, suites, components, enabled, description, signed_by, architectures=<factory>, availability=AvailabilityStatus.UNKNOWN)[source]#
Bases:
objectAPT source entry parsed from a .sources or .list file.
- Parameters:
- file_format: FileFormat#
- availability: AvailabilityStatus = 1#
- class WizardState(candidate_repos, target_codename, selected=<factory>, on_complete=None)[source]#
Bases:
objectShared state threaded through all upgrade wizard pages.
- Parameters:
candidate_repos (list[Repository])
target_codename (str)
selected (list[Repository])
on_complete (Callable[[], None] | None)
- candidate_repos: list[Repository]#
- selected: list[Repository]#
FileFormatAvailabilityStatusRepositoryRepository.source_fileRepository.file_formatRepository.typesRepository.urisRepository.suitesRepository.componentsRepository.enabledRepository.descriptionRepository.signed_byRepository.architecturesRepository.is_ppaRepository.ppa_ownerRepository.ppa_nameRepository.availabilityRepository.display_name
WizardState