mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
bugfix: fix extra dependency annotations
These were being displayed regardless of the dep type and state of DepDesc. This is fixed with this commit. Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
88569b6d09
commit
04d1c81d3d
3 changed files with 16 additions and 3 deletions
|
@ -46,6 +46,8 @@ def dep_extra(dep: PackageDependency) -> str:
|
|||
@register_filter("dep_extra_desc")
|
||||
def dep_extra_desc(dep: PackageDependency) -> str:
|
||||
extra = dep_extra(dep)
|
||||
if not dep.DepDesc:
|
||||
return extra
|
||||
return extra + f" – {dep.DepDesc}"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue