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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user