PageRenderTime 16ms CodeModel.GetById 10ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/CCache/debian/patches/10_lru_cleanup.diff

#
Unknown | 23 lines | 20 code | 3 blank | 0 comment | 0 complexity | eed9486f6689e266b2ca5032e139edbb MD5 | raw file
 1--- ccache.c	(r?Švision 8804)
 2+++ ccache.c	(copie de travail)
 3@@ -481,6 +481,9 @@
 4 		return;
 5 	}
 6 
 7+	/* update timestamps for LRU cleanup
 8+	   also gives output_file a sensible mtime when hard-linking (for make) */
 9+	utime(hashname, NULL);
10 	utime(stderr_file, NULL);
11 
12 	if (strcmp(output_file, "/dev/null") == 0) {
13@@ -513,10 +516,6 @@
14 			failed();
15 		}
16 	}
17-	if (ret == 0) {
18-		/* update the mtime on the file so that make doesn't get confused */
19-		utime(output_file, NULL);
20-	}
21 
22 	/* get rid of the intermediate preprocessor file */
23 	if (i_tmpfile) {