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.
This commit is contained in:
Andrew Walsh 2021-10-20 20:31:24 -07:00 committed by GitHub
parent 1372e9e2e7
commit 7a7e2ba767
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,9 +22,6 @@ for package in $packages; do
cache_filepath=$cache_dir/$package.tar.gz cache_filepath=$cache_dir/$package.tar.gz
echo "* Restoring package $package ($cache_filepath) from cache... " echo "* Restoring package $package ($cache_filepath) from cache... "
sudo tar -xf $cache_filepath -C $cache_restore_root 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 done
echo "Action complete. $cache_filename_count package(s) restored." echo "Action complete. $cache_filename_count package(s) restored."