summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libappstream-glib/as-app-validate.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libappstream-glib/as-app-validate.c b/libappstream-glib/as-app-validate.c
index 945771b..248e9b6 100644
--- a/libappstream-glib/as-app-validate.c
+++ b/libappstream-glib/as-app-validate.c
@@ -941,10 +941,13 @@ as_app_validate_releases (AsApp *app, AsAppValidateHelper *helper, GError **erro
as_format_get_kind (format) != AS_FORMAT_KIND_METAINFO)
return TRUE;
- /* only for desktop and console apps */
- if (as_app_get_kind (app) == AS_APP_KIND_DESKTOP ||
- as_app_get_kind (app) == AS_APP_KIND_CONSOLE) {
- require_release = TRUE;
+ /* make the requirements more strict */
+ if ((helper->flags & AS_APP_VALIDATE_FLAG_RELAX) == 0) {
+ /* only for desktop and console apps */
+ if (as_app_get_kind (app) == AS_APP_KIND_DESKTOP ||
+ as_app_get_kind (app) == AS_APP_KIND_CONSOLE) {
+ require_release = TRUE;
+ }
}
/* require releases */