src/etc/snapshot: support triples lacking a vendor

This commit is contained in:
Cody P Schafer 2014-11-13 17:14:46 -05:00
parent 15ba87f031
commit fb954a1578

View file

@ -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":