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

This is a followup to 0fd185fa6d. 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
This commit is contained in:
Matthias Clasen
2015-04-08 20:30:26 -04:00
parent 1d93df8a5e
commit 5af10c9c70

View File

@@ -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);