mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 18:55:30 +00:00
Update APT package metadata on installs to avoid errors due to staleness.
This commit is contained in:
parent
1372e9e2e7
commit
9512f95182
|
@ -15,6 +15,8 @@ for package in $packages; do
|
||||||
done
|
done
|
||||||
|
|
||||||
mkdir -p $cache_dir
|
mkdir -p $cache_dir
|
||||||
|
echo "* Updating APT package list and get the latest information..."
|
||||||
|
sudo apt-get update
|
||||||
for package in $packages; do
|
for package in $packages; do
|
||||||
cache_filepath=$cache_dir/$package.tar.gz
|
cache_filepath=$cache_dir/$package.tar.gz
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue