From 0876c459b44d0bbb3e954e210d0d035f7c536421 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 16 Feb 2015 15:49:24 +0100 Subject: reproducible: also complain about old schroots --- bin/reproducible_maintainance.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bin') 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 -- cgit v1.2.3-70-g09d2