Skip to content

Commit

Permalink
feat(info_cli, aur): add AUR Web URL field to -Si command
Browse files Browse the repository at this point in the history
  • Loading branch information
actionless committed Jul 3, 2024
1 parent de11dca commit 88fbc92
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions maintenance_scripts/vulture_whitelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
whitelist.aur.AURPackageInfo.pkg_license
whitelist.aur.AURPackageInfo.keywords
whitelist.aur.AURPackageInfo.git_url
whitelist.aur.AURPackageInfo.web_url
whitelist.aur.AURPackageInfo.submitter
whitelist.aur.AURPackageInfo.comaintainers

Expand Down
4 changes: 4 additions & 0 deletions pikaur/aur.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ class AURPackageInfo(DataType):
def git_url(self) -> str:
return f"{AurBaseUrl.get()}/{self.packagebase}.git"

@property
def web_url(self) -> str:
return f"{AurBaseUrl.get()}/packages/{self.name}"

def __init__(self, **kwargs: "Any") -> None:
for aur_api_name, pikaur_class_name in (
("description", "desc"),
Expand Down
1 change: 1 addition & 0 deletions pikaur/info_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def _info_packages_thread_repo() -> str | None:
def get_info_fields() -> dict[str, str]:
return {
"git_url": translate("AUR Git URL"),
"web_url": translate("AUR Web URL"),
# "aur_id": translate("id"),
"name": translate("Name"),
# packagebaseid=translate(""),
Expand Down

0 comments on commit 88fbc92

Please sign in to comment.