From 985ce2fb6c908054adcc03b29225cfdc0e464b5f 2017-09-26 17:57:42 From: Brett Smith Date: 2017-09-26 17:57:42 Subject: [PATCH] cron: Exclude what are obviously scripts from compilation. The impetus here is to stop the script from trying to compile and complaining about , which is a script written in Python 3 meant to help with repository maintenance. Excluding files with `-` in the name seems reasonable since they can't be modules anyway, so there's no reason to compile them. This will start failing if we add a similar script later that doesn't have a `-` in its name. --- diff --git a/cron/scripts/website-update.sh b/cron/scripts/website-update.sh index 3387e29cbaa76a2cdd6d9ce6ebe554a076d8f035..875597deca9cbd88fa06612473f1dae3cda7d3aa 100755 --- a/cron/scripts/website-update.sh +++ b/cron/scripts/website-update.sh @@ -45,7 +45,7 @@ if [ "$(git rev-parse "$PRODUCTION_BRANCH")" = "$(git rev-parse "$git_upstream") fi git merge --quiet --ff-only "$git_remote" "$git_refspec" -python2 -m compileall -q www || exitcode=$? +python2 -m compileall -q -x - www || exitcode=$? chgrp -R www-data www || exitcode=$? chmod -R g+rX-w,o+X-w www || exitcode=$? chmod -R o+r www/conservancy/static || exitcode=$?