Skip to content

Commit

Permalink
Add support for platform-specific keys in get-source.
Browse files Browse the repository at this point in the history
  • Loading branch information
RoliSoft committed Aug 7, 2017
1 parent cbc220e commit db8a8e1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions get-source.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,19 @@
tags = line[1].split(', ')
isTag = tag in tags

elif line[0] == 'GitCommit':
elif line[0] == 'amd64-GitCommit':
commit = line[1]

elif line[0] == 'GitCommit':
if not commit:
commit = line[1]

elif line[0] == 'amd64-Directory':
path = '/' + line[1].strip('/')

elif line[0] == 'Directory':
path = '/' + line[1]
if not path:
path = '/' + line[1].strip('/')

# otherwise, fail miserably

Expand Down

0 comments on commit db8a8e1

Please sign in to comment.