summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-02-02 15:21:44 +0000
committerRichard Hughes <richard@hughsie.com>2015-02-02 15:21:44 +0000
commit027f1d8b4dbce000ef35049a489c19f5650dc33a (patch)
tree99c68d7bafa8d8c1b06abc6f4e3c9639829de832
parent5319b33c29b4704a6e6710e762e5067b71909939 (diff)
downloadappstream-glib-027f1d8b4dbce000ef35049a489c19f5650dc33a.tar.gz
Fix a builder crash where a package depends on itself
-rw-r--r--libappstream-builder/asb-task.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-builder/asb-task.c b/libappstream-builder/asb-task.c
index f5248fb..c94d54e 100644
--- a/libappstream-builder/asb-task.c
+++ b/libappstream-builder/asb-task.c
@@ -184,6 +184,8 @@ asb_task_explode_extra_packages (AsbTask *task, GError **error)
continue;
if (g_hash_table_lookup (hash, tmp) != NULL)
continue;
+ if (g_strcmp0 (tmp, asb_package_get_name (priv->pkg)) == 0)
+ continue;
/* if an app depends on kde-runtime, that means the
* oxygen icon set is available to them */
if (g_strcmp0 (tmp, "oxygen-icon-theme") == 0 ||