diff options
author | Richard Hughes <richard@hughsie.com> | 2017-01-04 17:10:14 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-01-04 17:10:14 +0000 |
commit | e7f14579d1f9ab6f0f016caf81c34bb576c9ea92 (patch) | |
tree | 541c3fcde8d61acb5be8deedc559d7d19cf2772e | |
parent | 342d570825ed01f11bef0d722baec1fa2801964b (diff) | |
download | appstream-glib-e7f14579d1f9ab6f0f016caf81c34bb576c9ea92.tar.gz |
trivial: Do not recurse for library or filename deps
-rw-r--r-- | libappstream-builder/asb-task.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libappstream-builder/asb-task.c b/libappstream-builder/asb-task.c index d26366b..861b84e 100644 --- a/libappstream-builder/asb-task.c +++ b/libappstream-builder/asb-task.c @@ -172,6 +172,14 @@ asb_task_get_extra_deps_recursive (AsbTask *task, if (g_strcmp0 (subpkg_dep, dep) == 0) continue; + /* ignore libraries */ + if (g_strstr_len (subpkg_dep, -1, ".so.") != NULL) + continue; + + /* ignore files */ + if (g_str_has_prefix (subpkg_dep, "/")) + continue; + /* already processed? */ if (g_hash_table_lookup (extra_deps->results_hash, subpkg_dep) != NULL) continue; |