Revert package existence test.
This commit is contained in:
parent
6d3c7590b1
commit
0a4812359d
1 changed files with 3 additions and 4 deletions
|
@ -56,10 +56,9 @@ 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
|
||||
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}")
|
||||
|
|
Loading…
Reference in a new issue