[Git][qa/jenkins.debian.net][master] reproducible Debian: fix all found files with bad permissions

Holger Levsen (@holger) gitlab at salsa.debian.org
Thu Apr 18 20:39:51 BST 2024



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


Commits:
6d0c66f1 by Holger Levsen at 2024-04-18T21:39:38+02:00
reproducible Debian: fix all found files with bad permissions

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

- - - - -


1 changed file:

- bin/reproducible_maintenance.sh


Changes:

=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -462,13 +462,13 @@ fi
 echo "$(date -u) - Checking for files with bad permissions."
 # automatically fix rbuild files with wrong permissions...
 # (we know it happens (very rarely) but... shrugs.)
-[ ! -d $DEBIAN_BASE/rbuild ] || find $DEBIAN_BASE/rbuild ! -perm 644 -type f -exec chmod -v 644 {} \; 2>/dev/null|| true
+[ ! -d $DEBIAN_BASE/rbuild ] || find $DEBIAN_BASE/{buildinfo,dbd,dbdtxt,dbdjson,logs,logdiffs,rbuild,artifacts,buster,bullseye,bookworm,trixie,unstable,experimental,rb-pkg} ! -perm 644 -type f -exec chmod -v 644 {} \; 2>/dev/null|| true
 BADPERMS=$(find $DEBIAN_BASE/{buildinfo,dbd,dbdtxt,dbdjson,logs,logdiffs,rbuild,artifacts,buster,bullseye,bookworm,trixie,unstable,experimental,rb-pkg} ! -perm 644 -type f 2>/dev/null|| true)
 if [ -n "$BADPERMS" ] ; then
     DIRTY=true
     echo
-    echo "Warning: Found files with bad permissions (!=644):"
-    echo "$BADPERMS" | xargs echo chmod -v 644
+    echo "Warning: Found files with bad permissions (!=644) which couldn't be fixed, please fix manually:"
+    echo "$BADPERMS" | xargs echo sudo chmod -v 644
     echo
 fi
 



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

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/6d0c66f1e42430a6a2edc27f4decaf52c685ce02
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/20240418/8992222e/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list