mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 10:45:29 +00:00
Fix broken function calls.
This commit is contained in:
parent
971da5988a
commit
cdad971850
|
@ -28,7 +28,7 @@ debug="${4}"
|
|||
input_packages="${@:5}"
|
||||
|
||||
# Trim commas, excess spaces, and sort.
|
||||
packages="$(normalize_package_list "${input_packages}")"
|
||||
packages="$(get_normalized_package_list "${input_packages}")"
|
||||
|
||||
# Create cache directory so artifacts can be saved.
|
||||
mkdir -p ${cache_dir}
|
||||
|
@ -56,7 +56,8 @@ log_empty_line
|
|||
versioned_packages=""
|
||||
log "Verifying packages..."
|
||||
for package in ${packages}; do
|
||||
if test ! "$(apt-cache show "${package}")"; then
|
||||
apt_syntax_package=$(convert_action_to_apt_syntax_packages ${package})
|
||||
if test ! "$(apt-cache show ${apt_syntax_package})"; then
|
||||
echo "aborted"
|
||||
log "Package '${package}' not found." >&2
|
||||
exit 5
|
||||
|
@ -74,7 +75,7 @@ set -e
|
|||
log "Creating cache key..."
|
||||
|
||||
# TODO Can we prove this will happen again?
|
||||
normalized_versioned_packages="$(normalize_package_list "${versioned_packages}")"
|
||||
normalized_versioned_packages="$(get_normalized_package_list "${versioned_packages}")"
|
||||
log "- Normalized package list is '${normalized_versioned_packages}'."
|
||||
|
||||
# Forces an update in cases where an accidental breaking change was introduced
|
||||
|
|
Loading…
Reference in a new issue