mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 11:29:46 +03:00
* Make sure all Python modules are documented by adding a bit of shell to .ci/docs.sh * Remove non-existing module references from .rst * Fix various warnings from sphinx by adjusting Python docstrings * Add class member docs to ApkindexBlock
30 lines
798 B
Python
30 lines
798 B
Python
# Copyright 2024 Stefan Hansson
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
from dataclasses import dataclass
|
|
|
|
from pmb.core.arch import Arch
|
|
|
|
|
|
@dataclass
|
|
class ApkindexBlock:
|
|
"""
|
|
"timestamp" and "origin" are not set for virtual packages (#1273).
|
|
We use that information to skip these virtual packages in parse().
|
|
"""
|
|
|
|
#: the architecture of the package
|
|
arch: Arch
|
|
#: dependencies for the package
|
|
depends: list[str]
|
|
#: the origin name of the package
|
|
origin: str | None
|
|
#: package name
|
|
pkgname: str
|
|
#: what this package provides
|
|
provides: list[str]
|
|
#: provider priority for the package
|
|
provider_priority: int | None
|
|
#: unix timestamp of the package build date/time
|
|
timestamp: str | None
|
|
#: package version
|
|
version: str
|