src/etc/snapshot: support triples lacking a vendor
This commit is contained in:
parent
15ba87f031
commit
fb954a1578
@ -75,7 +75,11 @@ def full_snapshot_name(date, rev, platform, hsh):
|
||||
|
||||
|
||||
def get_kernel(triple):
|
||||
os_name = triple.split('-')[2]
|
||||
t = triple.split('-')
|
||||
if len(t) == 2:
|
||||
os_name = t[1]
|
||||
else:
|
||||
os_name = t[2]
|
||||
if os_name == "windows":
|
||||
return "winnt"
|
||||
if os_name == "darwin":
|
||||
|
Loading…
x
Reference in New Issue
Block a user