rollup merge of #18935: jmesmon/cody/no-vendor-triplle

This commit is contained in:
Jakub Bukaj 2014-11-16 10:19:47 +01:00
commit 0d97b95d43

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