From 7a7e2ba767b521b8c969c644037dc5f840c5bc27 Mon Sep 17 00:00:00 2001 From: Andrew Walsh Date: Wed, 20 Oct 2021 20:31:24 -0700 Subject: [PATCH] Remove APT upgrade on restore. This could affect performance and make the action moot. Will add better version reporting so the user knows what cache they are locking into. --- restore_pkgs.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/restore_pkgs.sh b/restore_pkgs.sh index 9f151e6..81e477c 100755 --- a/restore_pkgs.sh +++ b/restore_pkgs.sh @@ -22,9 +22,6 @@ for package in $packages; do cache_filepath=$cache_dir/$package.tar.gz echo "* Restoring package $package ($cache_filepath) from cache... " sudo tar -xf $cache_filepath -C $cache_restore_root - # Upgrade the install from last state. - # TODO(awalsh128) Add versioning to cache key creation. - sudo apt-get --yes --only-upgrade install $package done echo "Action complete. $cache_filename_count package(s) restored."