[gnome-software] icons plugin: Fix icon directory creation
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] icons plugin: Fix icon directory creation
- Date: Mon, 11 May 2015 12:24:28 +0000 (UTC)
commit 4d5024e2bed31a9e52beb6986f6eba1d2defe911
Author: Kalev Lember <kalevlember gmail com>
Date: Mon May 11 14:12:57 2015 +0200
icons plugin: Fix icon directory creation
Pass the whole path, including the icon filename to gs_mkdir_parent - it
takes care of stripping away the filename on its own.
src/plugins/gs-plugin-icons.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-icons.c b/src/plugins/gs-plugin-icons.c
index 80f2118..ce85c76 100644
--- a/src/plugins/gs-plugin-icons.c
+++ b/src/plugins/gs-plugin-icons.c
@@ -177,7 +177,7 @@ gs_plugin_refine_app (GsPlugin *plugin, GsApp *app, GError **error)
return TRUE;
/* create runtime dir and download */
- if (!gs_mkdir_parent (as_icon_get_prefix (ic), error))
+ if (!gs_mkdir_parent (as_icon_get_filename (ic), error))
return FALSE;
if (!gs_plugin_icons_download (plugin,
as_icon_get_url (ic),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]