From d93c95e39c0450c48c3e0c2b2ad2993f33da786a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Schoentgen?= Date: Tue, 15 Nov 2022 16:45:14 +0100 Subject: [PATCH] Skip apt-fast installation on cache hit (#61) --- install_and_cache_pkgs.sh | 7 +++++++ pre_cache_action.sh | 7 ------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/install_and_cache_pkgs.sh b/install_and_cache_pkgs.sh index c0a30cc..060194c 100755 --- a/install_and_cache_pkgs.sh +++ b/install_and_cache_pkgs.sh @@ -32,6 +32,13 @@ write_manifest "main" "${manifest_main}" "${cache_dir}/manifest_main.log" log_empty_line +log "Installing apt-fast for optimized installs..." +# Install apt-fast for optimized installs. +/bin/bash -c "$(curl -sL https://git.io/vokNn)" +log "done" + +log_empty_line + log "Updating APT package list..." sudo apt-fast update > /dev/null log "done" diff --git a/pre_cache_action.sh b/pre_cache_action.sh index c2fe2d6..82ba1fe 100755 --- a/pre_cache_action.sh +++ b/pre_cache_action.sh @@ -37,13 +37,6 @@ log "done" log_empty_line -log "Installing apt-fast for optimized installs..." -# Install apt-fast for optimized installs. -/bin/bash -c "$(curl -sL https://git.io/vokNn)" -log "done" - -log_empty_line - versioned_packages="" log "Verifying packages..." for package in ${packages}; do