Skip to content
Permalink
Browse files

Decrease distfile cache time to 4 hours

We don't have enough free disk space on the buildworkers to cache lots
of large distfiles.
  • Loading branch information
ryandesign committed Oct 2, 2018
1 parent ea170a2 commit 5c9a16d91dd8eac297defe53462befd8b6fb5fc3
Showing with 1 addition and 1 deletion.
  1. +1 −1 mpbb-cleanup
@@ -41,7 +41,7 @@ cleanup() {
if [ ! -L "${option_prefix}/var/macports/distfiles" ]; then
echo
echo "----> Deleting distfiles"
find "${option_prefix}/var/macports/distfiles" -type f -mtime +1 -print -delete | sed -E 's/^/Deleting distfile /'
find "${option_prefix}/var/macports/distfiles" -type f \! -newerat "4 hours ago" -print -delete | sed -E 's/^/Deleting distfile /'
find "${option_prefix}/var/macports/distfiles" -type d -mindepth 1 -empty -print -delete | sed -E 's/^/Deleting directory /'
fi
echo

0 comments on commit 5c9a16d

Please sign in to comment.
You can’t perform that action at this time.