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

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: default avatarHolger Levsen <holger@layer-acht.org>
parent 51114b86
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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