summaryrefslogtreecommitdiff
path: root/bin/cleanup
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-10-26 14:54:24 +0200
committerErich Eckner <git@eckner.net>2017-10-26 14:54:24 +0200
commit646cd78a14c6f821cdb4c30b83d7c00ee9063cc2 (patch)
tree732102325ac51fe19c5c13f83427371112e23889 /bin/cleanup
parentecaa8711d57c069a0ff98247d24369247421d56c (diff)
downloadbuilder-646cd78a14c6f821cdb4c30b83d7c00ee9063cc2.tar.xz
bin/cleanup: keep ELF-relocation errors forever
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