Skip to content

Commit

Permalink
src/etc/snapshot: support triples lacking a vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
codyps committed Nov 13, 2014
1 parent 15ba87f commit fb954a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/etc/snapshot.py
Expand Up @@ -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":
Expand Down

0 comments on commit fb954a1

Please sign in to comment.