[gtk+] Make gtk-update-icon-cache not fall over leftover temp files



commit 096b49013acb8cebffde1f857ee63aa83c247839
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Apr 8 20:30:26 2015 -0400

    Make gtk-update-icon-cache not fall over leftover temp files
    
    This is a followup to 0fd185fa6de2a89c11b4a28. There is no
    good reason to only try again if --force is passed. Do it
    always.
    
    See
    https://bugzilla.redhat.com/show_bug.cgi?id=1194957

 gtk/updateiconcache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c
index 6944a07..e71d6fb 100644
--- a/gtk/updateiconcache.c
+++ b/gtk/updateiconcache.c
@@ -1491,7 +1491,7 @@ build_cache (const gchar *path)
 opentmp:
   if ((fd = g_open (tmp_cache_path, O_WRONLY | O_CREAT | O_EXCL | O_TRUNC | _O_BINARY, mode)) == -1)
     {
-      if (force_update && retry_count == 0)
+      if (retry_count == 0)
         {
           retry_count++;
           g_remove (tmp_cache_path);


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