[arch] feature: able to filter orphan packages by the new 'orphan' category (AUR only)

This commit is contained in:
Vinicius Moreira
2022-03-12 12:02:40 -03:00
parent 1bf45547b2
commit 2ff5aa7f63
12 changed files with 25 additions and 2 deletions

View File

@@ -189,6 +189,9 @@ class ArchPackage(SoftwarePackage):
for a in self.cached_attrs():
val = data.get(a)
if val:
if a == 'categories' and isinstance(val, list) and 'orphan' in val:
val.remove('orphan')
setattr(self, a, val)
if a == 'icon_path':