[Git][qa/jenkins.debian.net][master] fixup²: rdn: make script more robust

Holger Levsen (@holger) gitlab at salsa.debian.org
Sat Apr 19 15:38:20 BST 2025



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
7b01c766 by Holger Levsen at 2025-04-19T16:38:11+02:00
fixup²: rdn: make script more robust

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/debrebuild_cache_limiter.sh


Changes:

=====================================
bin/debrebuild_cache_limiter.sh
=====================================
@@ -26,8 +26,9 @@ if [ $SIZE -gt $LIMIT ] ; then
 	# delete 1000 oldest files
 	# FIXME: use atime, but then, this script should not exist in the first place... :)
 	set -e
-	set -o pipefail	
-	find $CACHE -type f -printf '%T+ %p\n' | sort | head -n 1000|cut -d ' ' -f2-|xargs sudo rm -f
+	set -o pipefail
+	find $CACHE -type f -printf '%T+ %p\n' | sort | head -n 1000|cut -d ' ' -f2-|xargs sudo rm -f || true
+	echo "checking again..."
 	$0
 else
 	echo "$CACHE is ${SIZE}G, voila."



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/7b01c76661174c837ddbdc0e55d539927fff2780

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/7b01c76661174c837ddbdc0e55d539927fff2780
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20250419/ffa2d249/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list