daklib.import_repository¶
Functions
|
Import binary package described by 'entry' into the given 'suite' and 'component' |
|
Import source package described by 'entry' into the given 'archive' and 'component' |
|
Import source package described by 'entry' into the given 'suite' and 'component' |
|
Obtain a file 'path' located below 'base' |
|
Obtain release information |
|
Obtain file referenced from Release |
|
Check that source package 'source' with version 'version' exists in 'archive', with an optional check for the given component 'component'. |
Classes
|
|
|
- daklib.import_repository.import_package_to_suite(base, entry, transaction, suite, component) DBBinary [source]¶
Import binary package described by ‘entry’ into the given ‘suite’ and ‘component’
‘entry’ needs to be a dict-like object with at least the following keys as used in a Packages index: Filename, Size, MD5sum, SHA1, SHA256
- daklib.import_repository.import_source_to_archive(base, entry, transaction, archive, component) DBSource [source]¶
Import source package described by ‘entry’ into the given ‘archive’ and ‘component’
‘entry’ needs to be a dict-like object with at least the following keys as used in a Sources index: Directory, Files, Checksums-Sha1, Checksums-Sha256
- daklib.import_repository.import_source_to_suite(base, entry, transaction, suite, component)[source]¶
Import source package described by ‘entry’ into the given ‘suite’ and ‘component’
‘entry’ needs to be a dict-like object with at least the following keys as used in a Sources index: Directory, Files, Checksums-Sha1, Checksums-Sha256
- daklib.import_repository.obtain_file(base, path) File [source]¶
Obtain a file ‘path’ located below ‘base’
Note
return type can still change
- daklib.import_repository.obtain_release(base, suite_name, keyring, fingerprint=None) Release [source]¶
Obtain release information
- daklib.import_repository.obtain_release_file(release, filename) File [source]¶
Obtain file referenced from Release
A compressed version is automatically selected and decompressed if it exists.
- daklib.import_repository.source_in_archive(source: str, version: str, archive: Archive, component: Optional[Component] = None) bool [source]¶
Check that source package ‘source’ with version ‘version’ exists in ‘archive’, with an optional check for the given component ‘component’.
Note
This should probably be moved somewhere else