summaryrefslogtreecommitdiff
path: root/libappstream-builder/asb-context.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-11-14 09:30:54 +0000
committerRichard Hughes <richard@hughsie.com>2014-11-14 10:15:38 +0000
commit812655bc5f032cb589ac32931cb16b20a12eb914 (patch)
treeb9a28f8cc75c457bfab24c61b7e5aec1d9cb160a /libappstream-builder/asb-context.c
parentea705f15f867613309f4dd55125ae2c87d01996b (diff)
downloadappstream-glib-812655bc5f032cb589ac32931cb16b20a12eb914.tar.gz
Detect missing parents in the old metadata
If gedit-plugins is updated without gedit, we might veto the former as the latter isn't a processed application.
Diffstat (limited to 'libappstream-builder/asb-context.c')
-rw-r--r--libappstream-builder/asb-context.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libappstream-builder/asb-context.c b/libappstream-builder/asb-context.c
index 00f3883..c79f95f 100644
--- a/libappstream-builder/asb-context.c
+++ b/libappstream-builder/asb-context.c
@@ -1175,6 +1175,9 @@ asb_context_detect_missing_parents (AsbContext *ctx, GError **error)
found = g_hash_table_lookup (hash, tmp);
if (found != NULL)
continue;
+ found = as_store_get_app_by_id (priv->store_old, tmp);
+ if (found != NULL)
+ continue;
/* do not add the addon */
as_app_add_veto (app, "%s has no parent of '%s'\n",