Skip to content

Commit

Permalink
Merge pull request #3126 from dhellmann/USHIFT-2549-repoquery-cleanup
Browse files Browse the repository at this point in the history
USHIFT-2549: simplify repoquery command used to look up microshift RPM version
  • Loading branch information
openshift-merge-bot[bot] committed Mar 8, 2024
2 parents 3ad3726 + 32a791f commit eeb3e26
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/bin/get_rel_version_repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ get_current_release_from_sub_repos() {
local -r rhsm_repo="$(get_ocp_repo_name_for_version "${minor}")"

local newest
newest=$(sudo dnf repoquery microshift --quiet --queryformat '%{version}-%{release}' --repo "${rhsm_repo}" | sort --version-sort | tail -n1)
newest=$(sudo dnf repoquery microshift \
--quiet \
--queryformat '%{version}-%{release}' \
--repo "${rhsm_repo}" \
--latest-limit 1 \
)
if [ -n "${newest}" ]; then
echo "${newest}"
return
Expand Down

0 comments on commit eeb3e26

Please sign in to comment.