Skip to content

Commit

Permalink
fix: test needs to test with dpkg not for exact string match
Browse files Browse the repository at this point in the history
We have a lot of technical debt otherwise
  • Loading branch information
philclifford committed Jan 6, 2025
1 parent f7cf941 commit d491873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests-01-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
else
PUBLISHED_VER=$(./deb-get show "${APP}" | grep "Published:" | grep -oE '[^[:space:]]+$' || :)
INSTALLED_VER=$(dpkg-query -Wf '${Version}' "${APP}" || :)
if [ ! -z "${PUBLISHED_VER// /}" ] && [ "${PUBLISHED_VER}" != "${INSTALLED_VER}" ]; then
if [ ! -z "${PUBLISHED_VER// /}" ] && [ dpkg --compare-versions "${PUBLISHED_VER}" lt "${INSTALLED_VER}" ]; then
echo "Versions do not match. The package's VERSION_PUBLISHED variable may need to be changed." >&2
echo "Published Version: ${PUBLISHED_VER}"
echo "Installed Version: ${INSTALLED_VER}"
Expand Down

0 comments on commit d491873

Please sign in to comment.