[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible: explain when there is the need for manual cleanup

Holger Levsen holger at moszumanska.debian.org
Wed May 13 08:41:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 3661b23cb90402413b6b87bfbe198495da7dcc63
Author: Holger Levsen <holger at layer-acht.org>
Date:   Wed May 13 10:41:32 2015 +0200

    reproducible: explain when there is the need for manual cleanup
---
 bin/reproducible_maintenance.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index 256347d..45b1e1d 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -54,6 +54,13 @@ if [ ! -z "$OLDSTUFF" ] ; then
 	echo "Warning: old schroots found in /schroots, which have been deleted:"
 	find /schroots/ -maxdepth 1 -type d -regextype posix-extended -regex "/schroots/reproducible-.*-[0-9]{1,5}" -mtime +2 -exec sudo rm -rf --one-file-system {} \;
 	echo "$OLDSTUFF"
+	OLDSTUFF=$(find /schroots/ -maxdepth 1 -type d -regextype posix-extended -regex "/schroots/reproducible-.*-[0-9]{1,5}" -mtime +2 -exec ls -lad {} \;)
+	if [ ! -z "$OLDSTUFF" ] ; then
+		echo
+		echo "Warning: Tried, but failed to delete these:"
+		echo "$OLDSTUFF"
+		echo "Manual cleanup needed!"
+	fi
 	echo
 	DIRTY=true
 fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list