Skip to content

Commit 0d97b95

Browse files
author
Jakub Bukaj
committed
rollup merge of #18935: jmesmon/cody/no-vendor-triplle
2 parents ecf765d + fb954a1 commit 0d97b95

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/etc/snapshot.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ def full_snapshot_name(date, rev, platform, hsh):
7575

7676

7777
def get_kernel(triple):
78-
os_name = triple.split('-')[2]
78+
t = triple.split('-')
79+
if len(t) == 2:
80+
os_name = t[1]
81+
else:
82+
os_name = t[2]
7983
if os_name == "windows":
8084
return "winnt"
8185
if os_name == "darwin":

0 commit comments

Comments
 (0)