diff options
author | Richard Hughes <richard@hughsie.com> | 2016-10-19 20:37:10 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-10-19 20:39:23 +0100 |
commit | 2ee9c47225018006ef49a720f25a8f7840372cce (patch) | |
tree | b2c59c9ab35bedef78095aa8df8a0e1125f759a4 /libappstream-glib/as-store.c | |
parent | 1fb9721311ed809ba39221720cdfbe969f5c6416 (diff) | |
download | appstream-glib-2ee9c47225018006ef49a720f25a8f7840372cce.tar.gz |
Revert "trivial: Restrict the bundle kind when parsing local files"
This reverts commit 9b36119e1ed8ae7c2bec341143c343a9d73dcdd8 as it causes a
crash in gnome-software 3-22 when a component is available locally as an
addon but not in the appstream yaml or xml files.
The commit is clearly wrong, I guess the original author was crazy.
Diffstat (limited to 'libappstream-glib/as-store.c')
-rw-r--r-- | libappstream-glib/as-store.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libappstream-glib/as-store.c b/libappstream-glib/as-store.c index c4855a3..08f3346 100644 --- a/libappstream-glib/as-store.c +++ b/libappstream-glib/as-store.c @@ -2625,13 +2625,6 @@ as_store_load_installed (AsStore *store, as_icon_set_kind (icon, AS_ICON_KIND_STOCK); } - /* don't match against non-package apps in the store */ - if (scope == AS_APP_SCOPE_SYSTEM && - g_str_has_prefix (path, "/usr/share")) { - as_app_set_trust_flags (app, AS_APP_TRUST_FLAG_COMPLETE); - as_app_add_pkgname (app, ""); - } - /* set the ID prefix */ if ((priv->add_flags & AS_STORE_ADD_FLAG_USE_UNIQUE_ID) == 0) as_store_fixup_id_prefix (app, as_app_scope_to_string (scope)); |