summaryrefslogtreecommitdiff
path: root/bin/cleanup
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cleanup')
-rwxr-xr-xbin/cleanup4
1 files changed, 3 insertions, 1 deletions
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