From f55604e354765f438186cc28df8f77758f1bfea7 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 25 Nov 2017 16:15:07 +0100 Subject: bin/cleanup: keep logs of packages in testing and staging --- bin/cleanup | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bin/cleanup') diff --git a/bin/cleanup b/bin/cleanup index 5de6e0f..1a01683 100755 --- a/bin/cleanup +++ b/bin/cleanup @@ -39,13 +39,17 @@ fi # remove logs where package is not broken/locked anymore -# TODO: keep logs of staging and testing packages, too { find "${build_log_directory}/error" -maxdepth 1 -type f -printf '%f\n' | \ sed 's|\.[^.]\+\.build-log\.gz$||' | \ sort -u - find "${work_dir}/package-states" -maxdepth 1 \( -name '*.broken' -o -name '*.locked' \) -printf '%f\n' | \ + find "${work_dir}/package-states" -maxdepth 1 \( \ + -name '*.broken' -o \ + -name '*.done' -o \ + -name '*.locked' -o \ + -name '*.testing' \ + \) -printf '%f\n' | \ sed ' s|\.[^.]\+$|| p -- cgit v1.2.3