daklib.contents¶
Helper code for contents generation.
@contact: Debian FTPMaster <ftpmaster@debian.org> @copyright: 2011 Torsten Werner <twerner@debian.org> @license: GNU General Public License version 2 or later
Functions
|
This function is called in a new subprocess and multiprocessing wants a top level function. |
|
This function runs in a subprocess. |
|
This function is called in a new subprocess and multiprocessing wants a top level function. |
|
This function runs in a subprocess. |
Classes
|
BinaryContentsScanner provides a threadsafe method scan() to scan the contents of a DBBinary object. |
|
BinaryContentsWriter writes the Contents-$arch.gz files. |
Loop over all suites, architectures, overridetypes, and components to write all contents files. |
|
|
SourceContentsScanner provides a method scan() to scan the contents of a DBSource object. |
|
SourceContentsWriter writes the Contents-source.gz files. |
|
UnpackedSource extracts a source package into a temporary location and gives you some convinient function for accessing it. |
- class daklib.contents.BinaryContentsScanner(binary_id: int)[source]¶
BinaryContentsScanner provides a threadsafe method scan() to scan the contents of a DBBinary object.
- class daklib.contents.BinaryContentsWriter(suite: Suite, architecture: Architecture, overridetype: OverrideType, component: Component)[source]¶
BinaryContentsWriter writes the Contents-$arch.gz files.
- formatline(filename: str, package_list: str) str[source]¶
Returns a formatted string for the filename argument.
- writer() BinaryContentsFileWriter[source]¶
Returns a writer object.
- class daklib.contents.ContentsWriter[source]¶
Loop over all suites, architectures, overridetypes, and components to write all contents files.
- classmethod write_all(logger, archive_names: Collection[str] | None = None, suite_names: Collection[str] | None = None, component_names: Collection[str] | None = None, force=False)[source]¶
Writes all Contents files for suites in list suite_names which defaults to all ‘touchable’ suites if not specified explicitely. Untouchable suites will be included if the force argument is set to True.
- class daklib.contents.SourceContentsScanner(source_id: int)[source]¶
SourceContentsScanner provides a method scan() to scan the contents of a DBSource object.
- class daklib.contents.SourceContentsWriter(suite: Suite, component: Component)[source]¶
SourceContentsWriter writes the Contents-source.gz files.
- formatline(filename: str, package_list: str) str[source]¶
Returns a formatted string for the filename argument.
- writer() SourceContentsFileWriter[source]¶
Returns a writer object.
- class daklib.contents.UnpackedSource(dscfilename: str, tmpbasedir: str | None = None)[source]¶
UnpackedSource extracts a source package into a temporary location and gives you some convinient function for accessing it.
- daklib.contents.binary_helper(suite_id: int, arch_id: int, overridetype_id: int, component_id: int) list[str][source]¶
This function is called in a new subprocess and multiprocessing wants a top level function.
- daklib.contents.binary_scan_helper(binary_id: int) None[source]¶
This function runs in a subprocess.