summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libappstream-glib/as-store.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libappstream-glib/as-store.c b/libappstream-glib/as-store.c
index 5763ddb..f34c5b2 100644
--- a/libappstream-glib/as-store.c
+++ b/libappstream-glib/as-store.c
@@ -2634,7 +2634,8 @@ as_store_load (AsStore *store,
/* find and remove any vetoed applications */
as_store_check_apps_for_veto (store);
- as_store_remove_apps_with_veto (store);
+ if ((flags & AS_STORE_LOAD_FLAG_ALLOW_VETO) == 0)
+ as_store_remove_apps_with_veto (store);
/* match again, for applications extended from different roots */
as_store_match_addons (store);