From 4c99dd3680d37eef7e39369c042c2f3b8e0f4cfa Mon Sep 17 00:00:00 2001 From: olf Date: Fri, 22 Mar 2024 16:24:45 +0100 Subject: [PATCH] =?UTF-8?q?[package.py]=20Shorten=20description=20of=20"ap?= =?UTF-8?q?plication=20type"=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit … by referencing the corresponding SailfishOS:Chum specification. --- chumweb/package.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/chumweb/package.py b/chumweb/package.py index f489fb4..43e7f65 100644 --- a/chumweb/package.py +++ b/chumweb/package.py @@ -171,9 +171,8 @@ class PackageApplicationCategory(StrEnum): class PackageApplicationType(StrEnum): """ - Type of application a package provides - - Enums are based on https://www.freedesktop.org/software/appstream/docs/sect-AppStream-YAML.html#field-dep11-type + Type of application a package provides, for their specification and references see entry "Type:" in + https://github.com/sailfishos-chum/main/blob/main/Metadata.md#table-of-field-descriptions """ generic = enum.auto() console_application = "console-application" @@ -402,8 +401,8 @@ def web_url(self): return f"pkgs/{self.name}/" def get_download_url(self, arch: str) -> Optional[str]: - # noarch does not have a dedicated repository, use the first available arch I suppose - # This may be an idea in the category "not smart" + # `noarch` does not have a dedicated repository, use the first available arch I suppose: + # This might be a "not smart" idea. if arch == "noarch": repo = next(self.repos.__iter__()) else: