Accepting request 816388 from home:sjamgade:branches:science:machinelearning

OBS-URL: https://build.opensuse.org/request/show/816388
OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/ccache?expand=0&rev=92
This commit is contained in:
Martin Pluskal 2020-06-22 13:58:43 +00:00 committed by Git OBS Bridge
parent 43a6569b4d
commit 214a7312b5

View File

@ -1,4 +1,4 @@
From f0e72e01a3ca6accc0a9fbdc9f4ed2100ad343e7 Mon Sep 17 00:00:00 2001
From bf47731a54561497e0c4cfcc8c0bf4242a6fe43e Mon Sep 17 00:00:00 2001
From: Sumit Jamgade <sjamgade@suse.com>
Date: Mon, 22 Jun 2020 12:52:33 +0200
Subject: [PATCH] Add another cleanup mechanism - evict-older-than
@ -26,7 +26,7 @@ max_old into consideration
4 files changed, 55 insertions(+), 16 deletions(-)
diff --git a/src/ccache.c b/src/ccache.c
index 0e66468..71f9730 100644
index 0e66468..0db96e1 100644
--- a/src/ccache.c
+++ b/src/ccache.c
@@ -64,6 +64,8 @@ static const char USAGE_TEXT[] =
@ -58,7 +58,7 @@ index 0e66468..71f9730 100644
- {"zero-stats", no_argument, 0, 'z'},
+ {"cleanup", no_argument, 0, 'c'},
+ {"clear", no_argument, 0, 'C'},
+ {"evice-older-than", required_argument, 0, 'C'},
+ {"evict-older-than", required_argument, 0, 'e'},
+ {"dump-manifest", required_argument, 0, DUMP_MANIFEST},
+ {"get-config", required_argument, 0, 'k'},
+ {"hash-file", required_argument, 0, HASH_FILE},
@ -91,7 +91,7 @@ index 0e66468..71f9730 100644
+ fatal("seconds cannot be negative: %d", seconds);
+ }
+ clean_old(conf, (time_t)seconds);
+ printf("Cleared cache\n");
+ printf("Cleared old files\n");
+ break;
+
case 'h': // --help