From 0a4812359d55d4a52b47b38ed220062da36be666 Mon Sep 17 00:00:00 2001 From: awalsh128 Date: Thu, 23 Mar 2023 22:58:47 -0700 Subject: [PATCH] Revert package existence test. --- pre_cache_action.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pre_cache_action.sh b/pre_cache_action.sh index 2b48b54..b487743 100755 --- a/pre_cache_action.sh +++ b/pre_cache_action.sh @@ -55,11 +55,10 @@ log_empty_line versioned_packages="" log "Verifying packages..." -for package in ${packages}; do - package_name=$(echo ${package} | awk -F\= '{print $1}') - if test ! "$(apt-cache show ${package_name})"; then +for package in ${packages}; do + if test ! "$(apt-cache show ${package})"; then echo "aborted" - log "Package '${package_name}' not found." >&2 + log "Package '${package}' not found." >&2 exit 5 fi read package_name package_ver < <(get_package_name_ver "${package}")