diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-02-16 15:49:24 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-02-16 15:49:24 +0100 |
commit | 0876c459b44d0bbb3e954e210d0d035f7c536421 (patch) | |
tree | 3be4609045d490227dda83520f03b825631a8bf0 | |
parent | 48d19624b59dfe0e7542a943b6dadfb00ea75708 (diff) | |
download | jenkins.debian.net-0876c459b44d0bbb3e954e210d0d035f7c536421.tar.xz |
reproducible: also complain about old schroots
-rwxr-xr-x | bin/reproducible_maintainance.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh index b6977601..4bd07e19 100755 --- a/bin/reproducible_maintainance.sh +++ b/bin/reproducible_maintainance.sh @@ -42,6 +42,16 @@ if [ ! -z "$OLDSTUFF" ] ; then echo echo "Warning: old temp directories found in $REP_RESULTS" find $REP_RESULTS -type d -name "tmp.*" -mtime +2 -exec rm -rv {} \; + echo "These old directories have been deleted." + echo + DIRTY=true +fi + +# find old schroots +OLDSTUFF=$(find /schroots/ -type d -name "reproducible*" -mtime +2 -exec ls -lad {} \;) +if [ ! -z "$OLDSTUFF" ] ; then + echo + echo "Warning: old temp directories found in $REP_RESULTS" echo DIRTY=true fi |