summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-01-04 14:32:16 +0000
committerRichard Hughes <richard@hughsie.com>2017-01-04 14:32:16 +0000
commit49749de0bd597e5e9fe5e4b92875d6730a7b6968 (patch)
tree302f457829e9f542ebd3dfa6653dc299ac8b1633
parentb04fb193dad0e6e977d9bda2487bd50075f8f61c (diff)
downloadappstream-glib-49749de0bd597e5e9fe5e4b92875d6730a7b6968.tar.gz
trivial: Do not follow a foo->bar->foo->bar depchain
-rw-r--r--libappstream-builder/asb-task.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libappstream-builder/asb-task.c b/libappstream-builder/asb-task.c
index 78fb67f..d26366b 100644
--- a/libappstream-builder/asb-task.c
+++ b/libappstream-builder/asb-task.c
@@ -177,12 +177,14 @@ asb_task_get_extra_deps_recursive (AsbTask *task,
continue;
/* process recursively */
+ g_hash_table_insert (extra_deps->results_hash,
+ g_strdup (subpkg_dep),
+ GINT_TO_POINTER (1));
if (!asb_task_get_extra_deps_recursive (task, subpkg_dep, extra_deps, error))
return FALSE;
/* add to results */
g_ptr_array_add (extra_deps->results, g_strdup (subpkg_dep));
- g_hash_table_insert (extra_deps->results_hash, g_strdup (subpkg_dep), GINT_TO_POINTER (1));
}
return TRUE;