mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Rework maintenance check because the info is now in the 'antifeatures' key in the catalog. Also refuse level 8 for apps flagged as deprecated, alpha or replaced by another app
This commit is contained in:
parent
b67409e3a8
commit
3898d6ab1f
1 changed files with 4 additions and 3 deletions
|
@ -487,9 +487,10 @@ class App(TestSuite):
|
||||||
|
|
||||||
# Level 8 = qualifies for level 7 + maintained + long term good quality
|
# Level 8 = qualifies for level 7 + maintained + long term good quality
|
||||||
catalog_infos = self.app_catalog.catalog_infos
|
catalog_infos = self.app_catalog.catalog_infos
|
||||||
is_maintained = catalog_infos and catalog_infos.get("maintained", True) is True
|
antifeatures = catalog_infos and catalog_infos.get("antifeatures", [])
|
||||||
if not is_maintained:
|
|
||||||
_print(" The app is flagged as not maintained in the app catalog")
|
if any(af in antifeatures for af in ['package-not-maintained', 'deprecated-software', 'alpha-software', 'replaced-by-another-app']):
|
||||||
|
_print(" In the catalog, the app is flagged as not maintained / deprecated / alpha or replaced by another app")
|
||||||
elif (
|
elif (
|
||||||
"qualify_for_level_7" in successes
|
"qualify_for_level_7" in successes
|
||||||
and "is_long_term_good_quality" in successes
|
and "is_long_term_good_quality" in successes
|
||||||
|
|
Loading…
Reference in a new issue