diff options
author | Erich Eckner <git@eckner.net> | 2017-11-25 16:15:07 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-11-25 16:15:07 +0100 |
commit | f55604e354765f438186cc28df8f77758f1bfea7 (patch) | |
tree | 541f8c5eff15a7c77a93378f0cfcf89a5c8c1b52 /bin | |
parent | 59e21ecb524b130fcf78a5cad9aab4049e753910 (diff) | |
download | builder-f55604e354765f438186cc28df8f77758f1bfea7.tar.xz |
bin/cleanup: keep logs of packages in testing and staging
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cleanup | 8 |
1 files changed, 6 insertions, 2 deletions
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 |