From 646cd78a14c6f821cdb4c30b83d7c00ee9063cc2 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 26 Oct 2017 14:54:24 +0200 Subject: bin/cleanup: keep ELF-relocation errors forever --- bin/cleanup | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/cleanup') diff --git a/bin/cleanup b/bin/cleanup index 60e4ca6..1479a9b 100755 --- a/bin/cleanup +++ b/bin/cleanup @@ -78,7 +78,9 @@ find "${build_log_directory}/error" -maxdepth 1 -type f -printf '%f\n' | \ ) # only keep namcap logs of last 2 weeks for succeeded packages -find "${build_log_directory}/success" -maxdepth 1 -type f -mtime +14 -delete +find "${build_log_directory}/success" -maxdepth 1 -type f -mtime +14 \ + -not -exec zgrep -q '^+.*ELF file .* has text relocations' '{}' \; \ + -delete # remove old package meta data delete_old_metadata -- cgit v1.2.3-70-g09d2