@@ -137,7 +137,7 @@ function probe_platform_engines!(;verbose::Bool = false)
137
137
# download_engines is a list of (test_cmd, download_opts_functor)
138
138
# The probulator will check each of them by attempting to run `$test_cmd`,
139
139
# and if that works, will set the global download functions appropriately.
140
- const download_engines = [
140
+ download_engines = [
141
141
(` curl --help` , (url, path) -> ` curl -C - -\# -f -o $path -L $url ` ),
142
142
(` wget --help` , (url, path) -> ` wget -c -O $path $url ` ),
143
143
(` fetch --help` , (url, path) -> ` fetch -f $path $url ` ),
@@ -175,17 +175,17 @@ function probe_platform_engines!(;verbose::Bool = false)
175
175
# will check each of them by attempting to run `$test_cmd`, and if that
176
176
# works, will set the global compression functions appropriately.
177
177
gen_7z = (p) -> (unpack_7z (p), package_7z (p), list_7z (p), parse_7z_list)
178
- const compression_engines = Tuple[
178
+ compression_engines = Tuple[
179
179
(` tar --help` , unpack_tar, package_tar, list_tar, parse_tar_list),
180
180
]
181
181
182
182
# sh_engines is just a list of Cmds-as-paths
183
- const sh_engines = [
183
+ sh_engines = [
184
184
` sh`
185
185
]
186
186
187
187
# For windows, we need to tweak a few things, as the tools available differ
188
- @static if is_windows ()
188
+ @static if iswindows ()
189
189
# For download engines, we will most likely want to use powershell.
190
190
# Let's generate a functor to return the necessary powershell magics
191
191
# to download a file, given a path to the powershell executable
@@ -215,11 +215,11 @@ function probe_platform_engines!(;verbose::Bool = false)
215
215
prepend! (compression_engines, [(` 7z --help` , gen_7z (" 7z" )... )])
216
216
217
217
# On windows, we bundle 7z with Julia, so try invoking that directly
218
- const exe7z = joinpath (JULIA_HOME, " 7z.exe" )
218
+ exe7z = joinpath (JULIA_HOME, " 7z.exe" )
219
219
prepend! (compression_engines, [(` $exe7z --help` , gen_7z (exe7z)... )])
220
220
221
221
# And finally, we want to look for sh as busybox as well:
222
- const busybox = joinpath (JULIA_HOME, " busybox.exe" )
222
+ busybox = joinpath (JULIA_HOME, " busybox.exe" )
223
223
prepend! (sh_engines, [(` $busybox sh` )])
224
224
end
225
225
@@ -540,4 +540,3 @@ function download_verify_unpack(url::AbstractString,
540
540
rm (tarball_path)
541
541
end
542
542
end
543
-
0 commit comments