From 81d941cb916a07988fa382617402ccd2b359c7bb Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Tue, 17 Mar 2015 15:05:34 +0100 Subject: [PATCH] Add yast2-branding-openSUSE if an app depends on yast2 --- libappstream-builder/asb-task.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libappstream-builder/asb-task.c b/libappstream-builder/asb-task.c index cc681e2..411af5a 100644 --- a/libappstream-builder/asb-task.c +++ b/libappstream-builder/asb-task.c @@ -196,6 +196,15 @@ asb_task_explode_extra_packages (AsbTask *task, GError **error) GINT_TO_POINTER (1)); g_ptr_array_add (icon_themes, g_strdup ("oxygen-icon-theme")); + /* Applications depending on yast2 have an implicit dependency + * on yast2-branding-openSUSE, which brings required icons in this case. + */ + } else if (g_strcmp0 (tmp, "yast2-branding-openSUSE") == 0 || + g_strcmp0 (tmp, "yast2") == 0) { + g_hash_table_insert (hash, g_strdup ("yast2-branding-openSUSE"), + GINT_TO_POINTER (1)); + g_ptr_array_add (icon_themes, + g_strdup ("yast2-branding-openSUSE")); } else { g_ptr_array_add (array, g_strdup (tmp)); } -- 2.3.1