Skip to content

Commit

Permalink
ID_LIKE fallback for fiftyone-db (#4903)
Browse files Browse the repository at this point in the history
* ID_LIKE fallback

* bump db
  • Loading branch information
benjaminpkane authored Oct 11, 2024
1 parent 739d6b1 commit 7e73fec
Showing 1 changed file with 6 additions and 2 deletions.
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

0 comments on commit 7e73fec

Please sign in to comment.