[Git][qa/jenkins.debian.net][master] maintenance job: be more relaxed about files with 664 permissions
Holger Levsen (@holger)
gitlab at salsa.debian.org
Thu Aug 21 16:06:34 BST 2025
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
ab320cf4 by Holger Levsen at 2025-08-21T17:06:25+02:00
maintenance job: be more relaxed about files with 664 permissions
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_maintenance.sh
Changes:
=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -446,10 +446,10 @@ fi
# find + chmod files with bad permissions
echo "$(date -u) - Checking for files with bad permissions."
-# automatically fix rbuild files with wrong permissions...
+# automatically fix rbuild files with wrong permissions... (both 664 and 644 are ok though)
# (we know it happens (very rarely) but... shrugs.)
-[ ! -d $DEBIAN_BASE/rbuild ] || find $DEBIAN_BASE/{buildinfo,dbd,dbdtxt,dbdjson,logs,logdiffs,rbuild,artifacts,buster,bullseye,bookworm,trixie,forky,unstable,experimental,rb-pkg} -type f ! -perm 644 -exec sudo chmod -v 644 {} \; 2>/dev/null|| true
-BADPERMS=$(find $DEBIAN_BASE/{buildinfo,dbd,dbdtxt,dbdjson,logs,logdiffs,rbuild,artifacts,buster,bullseye,bookworm,trixie,forky,unstable,experimental,rb-pkg} -type f ! -perm 644 2>/dev/null|| true)
+[ ! -d $DEBIAN_BASE/rbuild ] || find $DEBIAN_BASE/{buildinfo,dbd,dbdtxt,dbdjson,logs,logdiffs,rbuild,artifacts,buster,bullseye,bookworm,trixie,forky,unstable,experimental,rb-pkg} -type f ! -perm 644 -o ! -perm 664 -exec sudo chmod -v 644 {} \; 2>/dev/null|| true
+BADPERMS=$(find $DEBIAN_BASE/{buildinfo,dbd,dbdtxt,dbdjson,logs,logdiffs,rbuild,artifacts,buster,bullseye,bookworm,trixie,forky,unstable,experimental,rb-pkg} -type f ! -perm 644 -o ! -perm 664 2>/dev/null|| true)
if [ -n "$BADPERMS" ] ; then
DIRTY=true
echo
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/ab320cf4b56aad386b547cda984ae5d73da821ff
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/ab320cf4b56aad386b547cda984ae5d73da821ff
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/20250821/fc9c9167/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list