[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] reproducible Debian: automatically fix rbuild files with wrong permissions (we…
Holger Levsen
gitlab at salsa.debian.org
Mon Oct 15 22:27:14 BST 2018
Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net
Commits:
7a08f9df by Holger Levsen at 2018-10-15T21:26:38Z
reproducible Debian: automatically fix rbuild files with wrong permissions (we know it happens rarely, is harmless and just causes a tiny bit of work every week or so, so NO
Signed-off-by: Holger Levsen <holger at layer-acht.org>
- - - - -
1 changed file:
- bin/reproducible_maintenance.sh
Changes:
=====================================
bin/reproducible_maintenance.sh
=====================================
@@ -575,7 +575,10 @@ fi
# find + chmod files with bad permissions
echo "$(date -u) - Checking for files with bad permissions."
-BADPERMS=$(find $DEBIAN_BASE/{buildinfo,dbd,rbuild,artifacts,stretch,buster,unstable,experimental,rb-pkg} ! -perm 644 -type f 2>/dev/null|| true)
+# automatically fix rbuild files with wrong permissions...
+# (we know it happens (very rarely) but... shrugs.)
+find $DEBIAN_BASE/rbuild ! -perm 644 -type f -exec chmod -v 644 {} \;
+BADPERMS=$(find $DEBIAN_BASE/{buildinfo,dbd,artifacts,stretch,buster,unstable,experimental,rb-pkg} ! -perm 644 -type f 2>/dev/null|| true)
if [ ! -z "$BADPERMS" ] ; then
DIRTY=true
echo
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/7a08f9df1718776129ccb83912857ddc98b6304d
--
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/commit/7a08f9df1718776129ccb83912857ddc98b6304d
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/20181015/02358c17/attachment.html>
More information about the Qa-jenkins-scm
mailing list