Skip to content

Commit

Permalink
show apt-cache output if packageversion empty during specified repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot committed Dec 19, 2024
1 parent c7001f1 commit ada3342
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,9 @@ install_packages() { #Make some packages dependencies of the $app app. Package-n
#request package version if backports repo was specified
elif [ ! -z "$repo_selection" ];then
local packageversion="$(package_latest_version "$package" -t "$repo_selection" | sed 's/+.*//g')"
if [ -z "$packageversion" ];then
error "install_packages(): failed to get package version for $package, apt-cache output was $(apt-cache policy -t "$repo_selection" "$package" 2>&1)"
fi
#add version specification to package
packages="$(echo "$packages" | sed "s|^${package}$|$package (>= $packageversion)|")"
fi
Expand Down

0 comments on commit ada3342

Please sign in to comment.