Skip to content

Commit fb954a1

Browse files
committed
src/etc/snapshot: support triples lacking a vendor
1 parent 15ba87f commit fb954a1

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)