mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2024-12-22 10:45:29 +00:00
Test apt-cache show command wrt versioning.
This commit is contained in:
parent
f5bcdd76d3
commit
6d3c7590b1
|
@ -56,9 +56,10 @@ log_empty_line
|
|||
versioned_packages=""
|
||||
log "Verifying packages..."
|
||||
for package in ${packages}; do
|
||||
if test ! "$(apt-cache show ${package})"; then
|
||||
package_name=$(echo ${package} | awk -F\= '{print $1}')
|
||||
if test ! "$(apt-cache show ${package_name})"; then
|
||||
echo "aborted"
|
||||
log "Package '${package}' not found." >&2
|
||||
log "Package '${package_name}' not found." >&2
|
||||
exit 5
|
||||
fi
|
||||
read package_name package_ver < <(get_package_name_ver "${package}")
|
||||
|
|
Loading…
Reference in a new issue