Skip to content

Commit

Permalink
Do not assume ID_LIKE (#287)
Browse files Browse the repository at this point in the history
Resolves #244.
  • Loading branch information
siddharthab authored Mar 12, 2024
1 parent 67d4dcd commit 0f93634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toolchain/internal/common.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _linux_dist(rctx):

distname = info["ID"].strip('\"')

if distname not in _known_distros:
if distname not in _known_distros and "ID_LIKE" in info:
for distro in info["ID_LIKE"].strip('\"').split(" "):
if distro in _known_distros:
distname = distro
Expand Down

0 comments on commit 0f93634

Please sign in to comment.