diff options
author | Richard Hughes <richard@hughsie.com> | 2016-03-31 18:55:32 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-03-31 18:55:32 +0100 |
commit | 4a7396633187f7e2f98e6bd4af3787a99dbfef6d (patch) | |
tree | fdc3d358a71970d09d35134c3ef7867480e01fc3 | |
parent | d896d50d42e83463a741e0a26e60016c4f32afa8 (diff) | |
download | appstream-glib-4a7396633187f7e2f98e6bd4af3787a99dbfef6d.tar.gz |
trivial: Only remove apps with a veto when specified
-rw-r--r-- | libappstream-glib/as-store.c | 3 |
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); |