[Git][qa/jenkins.debian.net][master] refactoring

Holger Levsen (@holger) gitlab at salsa.debian.org
Tue Apr 22 21:57:20 BST 2025



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


Commits:
23d97d9d by Holger Levsen at 2025-04-22T22:57:06+02:00
refactoring

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

- - - - -


1 changed file:

- bin/debrebuild_cache_limiter.sh


Changes:

=====================================
bin/debrebuild_cache_limiter.sh
=====================================
@@ -3,6 +3,7 @@
 # Copyright 2025 Holger Levsen (holger at layer-acht.org)
 # released under the GPLv2
 
+set -o pipefail
 CACHE=~rebuilderd/cache
 
 if [ ! -d $CACHE ] ; then
@@ -26,7 +27,6 @@ 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 || true
 	echo "checking again..."
 	$0



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/23d97d9d57999b3e33c6b87b75a5cf74c54b97de
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/20250422/66b46316/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list