Commit 7a08f9df authored by Holger Levsen's avatar Holger Levsen

reproducible Debian: automatically fix rbuild files with wrong permissions (we…

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's avatarHolger Levsen <holger@layer-acht.org>
parent 51114b86
...@@ -575,7 +575,10 @@ fi ...@@ -575,7 +575,10 @@ fi
# find + chmod files with bad permissions # find + chmod files with bad permissions
echo "$(date -u) - Checking for 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 if [ ! -z "$BADPERMS" ] ; then
DIRTY=true DIRTY=true
echo echo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment