Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ID_LIKE fallback for fiftyone-db #4903

Merged
merged 2 commits into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions package/db/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ def _get_linux_download():
# filter empty lines
d = dict(line for line in reader if line)

for k, v in LINUX_DOWNLOADS[d["ID"].lower()].items():
key = d["ID"].lower()
if key not in LINUX_DOWNLOADS:
key = d["ID_LIKE"].lower()

for k, v in LINUX_DOWNLOADS[key].items():
if d["VERSION_ID"].startswith(k):
return v[MACHINE]

Expand All @@ -171,7 +175,7 @@ def _get_download():
MONGODB_BINARIES = ["mongod"]


VERSION = "1.1.6"
VERSION = "1.1.7"


def get_version():
Expand Down
Loading