[arch] feature: able to filter outdated packages by the new 'out of date' category (AUR only)

This commit is contained in:
Vinicius Moreira
2022-03-12 12:17:22 -03:00
parent 2ff5aa7f63
commit 3e13b64e4c
12 changed files with 29 additions and 5 deletions

View File

@@ -94,11 +94,15 @@ class AURDataMapper:
self.fill_api_data(app, apidata, fill_version=not data)
if app.orphan:
if app.orphan or app.out_of_date:
if app.categories is None:
app.categories = []
app.categories.append('orphan')
if app.orphan:
app.categories.append('orphan')
if app.out_of_date:
app.categories.append('out_of_date')
return app