daklib.import_repository

Functions

import_package_to_suite(base, entry, ...)

Import binary package described by 'entry' into the given 'suite' and 'component'

import_source_to_archive(base, entry, ...)

Import source package described by 'entry' into the given 'archive' and 'component'

import_source_to_suite(base, entry, ...)

Import source package described by 'entry' into the given 'suite' and 'component'

obtain_file(base, path)

Obtain a file 'path' located below 'base'

obtain_release(base, suite_name, keyring[, ...])

Obtain release information

obtain_release_file(release, filename)

Obtain file referenced from Release

source_in_archive(source, version, archive)

Check that source package 'source' with version 'version' exists in 'archive', with an optional check for the given component 'component'.

Classes

File()

Release(base, suite_name, data)

class daklib.import_repository.File[source]
fh()[source]
hashes()[source]
class daklib.import_repository.Release(base, suite_name, data)[source]
architectures()[source]
codename()[source]
components()[source]
packages(component, architecture)[source]
sources(component)[source]
suite()[source]
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