mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-09 16:44:15 +02:00
[arch] feature: able to filter orphan packages by the new 'orphan' category (AUR only)
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user