summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-05-23 12:43:29 +0100
committerRichard Hughes <richard@hughsie.com>2016-05-23 12:43:29 +0100
commitb8bf861c684d73b15dd368f628fc8218918cea76 (patch)
tree76e12983998c687aaa35425a5c71e39aa5225901
parenta8ee60ba54dc6401ccf4992fdd28d98d722b612c (diff)
parent4a72151ae0d0f4f4aeba352cc0ffa02fc0109f87 (diff)
downloadappstream-glib-b8bf861c684d73b15dd368f628fc8218918cea76.tar.gz
Merge pull request #108 from DimStar77/yast
Add yast2-branding-openSUSE if an app depends on yast2
-rw-r--r--libappstream-builder/asb-task.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libappstream-builder/asb-task.c b/libappstream-builder/asb-task.c
index 56dbdef..fe978b4 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));
}