Skip to content

Commit

Permalink
[package.py] Shorten description of "application type" …
Browse files Browse the repository at this point in the history
… by referencing the corresponding SailfishOS:Chum specification.
  • Loading branch information
Olf0 authored Mar 22, 2024
1 parent 15ed842 commit 4c99dd3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions chumweb/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 4c99dd3

Please sign in to comment.