[Git][qa/jenkins.debian.net][master] fixup: maintenance job: be more relaxed about files with 664 permissions
Holger Levsen (@holger)
gitlab at salsa.debian.org
Thu Aug 21 16:12:10 BST 2025
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
c7fc0d1c by Holger Levsen at 2025-08-21T17:12:03+02:00
fixup: 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,14 +446,14 @@ fi
# find + chmod files with bad permissions
echo "$(date -u) - Checking for files with bad permissions."
-# automatically fix rbuild files with wrong permissions... (both 664 and 644 are ok though)
+# automatically fix rbuild files with wrong permissions...
# (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 -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)
+[ ! -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 664 -exec sudo chmod -v 664 {} \; 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 664 2>/dev/null|| true)
if [ -n "$BADPERMS" ] ; then
DIRTY=true
echo
- echo "Warning: Found files with bad permissions (!=644) which couldn't be fixed, please fix manually:"
+ echo "Warning: Found files with bad permissions (!=664) which couldn't be fixed, please fix manually:"
echo "$BADPERMS"
echo
fi
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/c7fc0d1c32865acd261fc0ddc18bc78ff3581bc6
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/c7fc0d1c32865acd261fc0ddc18bc78ff3581bc6
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/b540e3b8/attachment-0001.htm>
More information about the Qa-jenkins-scm
mailing list