Skip to content

Commit

Permalink
CHANGE: using system/platform instead of system/build/os to get a…
Browse files Browse the repository at this point in the history
…n extension url
  • Loading branch information
Oldes committed Feb 12, 2023
1 parent 0d5d91e commit 1dbefcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion make/tools/utils.reb
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ get-libc-version: function[][

get-os-info: function[
"Tries to collect information about hosting Linux operating system"
;@@ Based on this research: https://www.tecmint.com/check-linux-os-version/
][
tmp: copy ""
out: copy #()
Expand All @@ -150,7 +151,7 @@ get-os-info: function[
whs: system/catalog/bitsets/whitespace
try [
call/output/shell/wait "cat /etc/*-release" :tmp
parse tmp [
parse probe tmp [
any [
copy k: some key #"=" copy v: to enl some whs (
try [v: transcode/one v]
Expand Down
2 changes: 1 addition & 1 deletion src/mezz/sys-load.reb
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ download-extension: function[
url [url!]
][
either dir? url [
file: repend to file! name [#"-" system/build/os #"-" system/build/arch %.rebx]
file: lowercase repend to file! name [#"-" system/platform #"-" system/build/arch %.rebx]
url: append copy url file
if system/platform <> 'Windows [append url %.gz]
][
Expand Down

0 comments on commit 1dbefcd

Please sign in to comment.