mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 18:55:30 +00:00
Write out manifest.
This commit is contained in:
parent
8f2c275875
commit
edd1138fdd
|
@ -42,6 +42,10 @@ echo "done."
|
||||||
|
|
||||||
manifest_filepath="$cache_dir/manifest.log"
|
manifest_filepath="$cache_dir/manifest.log"
|
||||||
echo -n "Writing package manifest to $manifest_filepath..."
|
echo -n "Writing package manifest to $manifest_filepath..."
|
||||||
|
manifest=
|
||||||
|
for package in $packages; do
|
||||||
|
manifest=$manifest,$package:$(dpkg -s $package | grep Version | awk '{print $2}')
|
||||||
|
done
|
||||||
# Remove trailing comma.
|
# Remove trailing comma.
|
||||||
echo ${manifest:0:-1} > $manifest_filepath
|
echo ${manifest:0:-1} > $manifest_filepath
|
||||||
echo "done."
|
echo "done."
|
|
@ -20,6 +20,7 @@ echo "Reading from manifest..."
|
||||||
for logline in $(cat $cache_dir/manifest.log | tr ',' '\n' ); do
|
for logline in $(cat $cache_dir/manifest.log | tr ',' '\n' ); do
|
||||||
echo "- $(echo $logline | tr ':' ' ')"
|
echo "- $(echo $logline | tr ':' ' ')"
|
||||||
done
|
done
|
||||||
|
echo "done."
|
||||||
|
|
||||||
# Only search for archived results. Manifest and cache key also live here.
|
# Only search for archived results. Manifest and cache key also live here.
|
||||||
cache_pkg_filepaths=$(ls -1 $cache_dir/*.tar.gz | sort)
|
cache_pkg_filepaths=$(ls -1 $cache_dir/*.tar.gz | sort)
|
||||||
|
|
Loading…
Reference in a new issue