Skip to content

Commit f29b6ba

Browse files
committed
FIX: using correct module name (not using arch and .rebx extension) in case, that url to module contains file name
1 parent c7d3281 commit f29b6ba

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/mezz/sys-load.reb

+6-5
Original file line numberDiff line numberDiff line change
@@ -692,15 +692,16 @@ download-extension: function[
692692
;; currently the used urls are like: https://github.com/Oldes/Rebol-MiniAudio/releases/download/1.0.0/
693693
;; and the file is made according Rebol version, which needs the extension
694694
][
695-
if dir? url [
695+
so: system/options
696+
file: as file! ajoin either dir? url [
696697
url: as url! ajoin [url name #"-" system/platform #"-" system/build/arch %.rebx]
697698
if system/platform <> 'Windows [append url %.gz]
698-
]
699-
so: system/options
699+
;; save the file into the modules directory (using just name+arch)
700+
[so/modules name #"-" system/build/arch %.rebx]
701+
][ [so/modules lowercase second split-path url ]]
702+
700703
opt: so/log
701704
try/with [
702-
;; save the file into the modules directory (using just name+arch)
703-
file: as file! ajoin [so/modules name #"-" system/build/arch %.rebx]
704705
if exists? file [
705706
; we don't want to overwrite any existing files!
706707
log/info 'REBOL ["File already exists:^[[m" file]

0 commit comments

Comments
 (0)