Followup, re-added check for invalid HL2SDK paths (bug 5023, r=ds).

This commit is contained in:
Reuben Morais 2012-03-21 21:25:34 -05:00
parent 74e546e145
commit 8a10cc982c

View File

@ -80,8 +80,9 @@ class SM:
oldhead = head
head, tail = os.path.split(head)
if i.startswith('HL2SDK'):
(info, sdk) = findDictByKey(self.possibleSdks, 'sdk', i)
self.sdkInfo[sdk] = info
if head != None and head != oldhead:
(info, sdk) = findDictByKey(self.possibleSdks, 'sdk', i)
self.sdkInfo[sdk] = info
elif head == None or head == oldhead:
raise Exception('Could not find a valid path for {0}'.format(i))
AMBuild.cache.CacheVariable(i, path)