pmbootstrap-meow/pmb/core/apkindex_block.py
Luca Weiss 35cd64086f
Improvements to documentation (MR 2440)
* 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
2024-10-21 21:46:26 +02:00

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