summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-02-16 15:49:24 +0100
committerHolger Levsen <holger@layer-acht.org>2015-02-16 15:49:24 +0100
commit0876c459b44d0bbb3e954e210d0d035f7c536421 (patch)
tree3be4609045d490227dda83520f03b825631a8bf0 /bin
parent48d19624b59dfe0e7542a943b6dadfb00ea75708 (diff)
downloadjenkins.debian.net-0876c459b44d0bbb3e954e210d0d035f7c536421.tar.xz
reproducible: also complain about old schroots
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_maintainance.sh10
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