Merge branch 'staging' of https://github.com/awalsh128/cache-apt-pkgs-action into staging
This commit is contained in:
commit
9a4f0f7d01
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ for package in ${normalized_packages}; do
|
||||||
# Pipe all package files (no folders) to Tar.
|
# Pipe all package files (no folders) to Tar.
|
||||||
dpkg -L "${cache_package_name}" |
|
dpkg -L "${cache_package_name}" |
|
||||||
while IFS= read -r f; do
|
while IFS= read -r f; do
|
||||||
if test -f $f; then echo "${f:1}"; fi; #${f:1} removes the leading slash that Tar disallows
|
if test -f $f || test -L $f; then echo "${f:1}"; fi; #${f:1} removes the leading slash that Tar disallows
|
||||||
done |
|
done |
|
||||||
xargs tar -czf "${cache_filepath}" -C /
|
xargs tar -czf "${cache_filepath}" -C /
|
||||||
log "done (compressed size $(du -k "${cache_filepath}" | cut -f1))."
|
log "done (compressed size $(du -k "${cache_filepath}" | cut -f1))."
|
||||||
|
@ -84,4 +84,4 @@ manifest_main_filepath="${cache_dir}/manifest_main.log"
|
||||||
log "Writing main requested packages manifest to ${manifest_main_filepath}..."
|
log "Writing main requested packages manifest to ${manifest_main_filepath}..."
|
||||||
# Remove trailing comma and write to manifest_main file.
|
# Remove trailing comma and write to manifest_main file.
|
||||||
echo "${manifest_main:0:-1}" > "${manifest_main_filepath}"
|
echo "${manifest_main:0:-1}" > "${manifest_main_filepath}"
|
||||||
log "done."
|
log "done."
|
||||||
|
|
Loading…
Reference in a new issue