[gnome-software] utils: Use "kind" to namespace the caches in LOCALSTATEDIR too



commit 7e7afcded9893391ee90ba059dd94afee892c704
Author: Sam Spilsbury <sam endlessm com>
Date:   Sun Jul 3 19:22:13 2016 -0700

    utils: Use "kind" to namespace the caches in LOCALSTATEDIR too
    
    I am relatively sure this was a copy-paste bug when LOCALSTATEDIR
    support was added. I have not seen any users of /var/cache/gnome-software
    yet, but it seems odd to me that caches would be namespaced everywhere
    else and not there.

 src/gs-utils.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-utils.c b/src/gs-utils.c
index bf85654..865c04a 100644
--- a/src/gs-utils.c
+++ b/src/gs-utils.c
@@ -129,6 +129,7 @@ gs_utils_get_cache_filename (const gchar *kind,
                cachefn = g_build_filename (LOCALSTATEDIR,
                                            "cache",
                                            "gnome-software",
+                                           kind,
                                            basename,
                                            NULL);
                if (g_file_test (cachefn, G_FILE_TEST_EXISTS))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]