Skip to content

Commit 5e24ee0

Browse files
authored
hotfix: Make sure that . in platform doesn't lead to confusion (#1177)
1 parent 0933606 commit 5e24ee0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AutoBuild.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ function rebuild_jll_package(name::String, build_version::VersionNumber, sources
11061106
downloaded_files = readdir(download_dir)
11071107
for platform in sort(collect(platforms), by = triplet)
11081108
# Find the corresponding tarball:
1109-
tarball_idx = findfirst([occursin(".$(triplet(platform)).", f) for f in downloaded_files])
1109+
tarball_idx = findfirst([occursin(".$(triplet(platform)).tar", f) for f in downloaded_files])
11101110

11111111
# No tarball matching the given platform...
11121112
if tarball_idx === nothing
@@ -1116,7 +1116,7 @@ function rebuild_jll_package(name::String, build_version::VersionNumber, sources
11161116
if isos(platform) && os_version(platform) === nothing
11171117
tmp_platform = deepcopy(platform)
11181118
tmp_platform["os_version"] = try_os_version
1119-
tarball_idx = findfirst([occursin(".$(triplet(tmp_platform)).", f) for f in downloaded_files])
1119+
tarball_idx = findfirst([occursin(".$(triplet(tmp_platform)).tar", f) for f in downloaded_files])
11201120
end
11211121
end
11221122
end

0 commit comments

Comments
 (0)