Skip to content

Commit

Permalink
reg: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmueller committed Jan 17, 2024
1 parent bf18519 commit 70d60a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dcor_control/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def get_max_compatible_version(name, ckan_version=None):
# compare the latest CKAN version in that file with the current CKAN
vdict0 = compatible_versions[0]
# If CKAN is not installed, `get_package_version` will return `None`.
ckan_cur = get_package_version("ckan") or ckan_version or vdict0["ckan"]
ckan_cur = ckan_version or get_package_version("ckan") or vdict0["ckan"]
if version_greater_equal(ckan_cur, vdict0["ckan"]):
# if current CKAN matches or is newer, return None
max_version = None
Expand Down

0 comments on commit 70d60a1

Please sign in to comment.