summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-08-23 14:42:13 +0100
committerRichard Hughes <richard@hughsie.com>2016-08-23 14:42:13 +0100
commitd5b5703da3b0db81e750ded28e5e72abd2375739 (patch)
tree240c2d8f58e7fe8d3799a5f44a2f51fe72093073
parent0e972b9aaee72e3a231b170adb168a535c00e98b (diff)
downloadappstream-glib-d5b5703da3b0db81e750ded28e5e72abd2375739.tar.gz
trivial: Restrict the scope when parsing local files
This means we don't wildcard match against user non-package apps.
-rw-r--r--libappstream-glib/as-store.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libappstream-glib/as-store.c b/libappstream-glib/as-store.c
index 30b563d..b3bf57b 100644
--- a/libappstream-glib/as-store.c
+++ b/libappstream-glib/as-store.c
@@ -2536,6 +2536,7 @@ as_store_load_installed (AsStore *store,
}
}
app = as_app_new ();
+ as_app_set_scope (app, scope);
if (!as_app_parse_file (app, filename, parse_flags, &error_local)) {
if (g_error_matches (error_local,
AS_APP_ERROR,