Remove verbose hl2sdk-X not found
warning
None of the available usage options have any use for such a warning.
This commit is contained in:
parent
8e7d41ec02
commit
3eb2cd2971
@ -159,7 +159,6 @@ class SMConfig(object):
|
|||||||
use_all = sdk_list[0] == 'all'
|
use_all = sdk_list[0] == 'all'
|
||||||
use_present = sdk_list[0] == 'present'
|
use_present = sdk_list[0] == 'present'
|
||||||
|
|
||||||
not_found = []
|
|
||||||
for sdk_name in PossibleSDKs:
|
for sdk_name in PossibleSDKs:
|
||||||
sdk = PossibleSDKs[sdk_name]
|
sdk = PossibleSDKs[sdk_name]
|
||||||
if sdk.shouldBuild(self.all_targets):
|
if sdk.shouldBuild(self.all_targets):
|
||||||
@ -170,7 +169,6 @@ class SMConfig(object):
|
|||||||
if sdk_path is None or not os.path.isdir(sdk_path):
|
if sdk_path is None or not os.path.isdir(sdk_path):
|
||||||
if use_all or sdk_name in sdk_list:
|
if use_all or sdk_name in sdk_list:
|
||||||
raise Exception('Could not find a valid path for {0}'.format(sdk.envvar))
|
raise Exception('Could not find a valid path for {0}'.format(sdk.envvar))
|
||||||
not_found.append(sdk_name)
|
|
||||||
continue
|
continue
|
||||||
if use_all or use_present or sdk_name in sdk_list:
|
if use_all or use_present or sdk_name in sdk_list:
|
||||||
sdk.path = Normalize(sdk_path)
|
sdk.path = Normalize(sdk_path)
|
||||||
@ -179,9 +177,6 @@ class SMConfig(object):
|
|||||||
if len(self.sdks) < 1 and len(sdk_list) and not use_none:
|
if len(self.sdks) < 1 and len(sdk_list) and not use_none:
|
||||||
raise Exception('No applicable SDKs were found, nothing to do')
|
raise Exception('No applicable SDKs were found, nothing to do')
|
||||||
|
|
||||||
for sdk in not_found:
|
|
||||||
print('Warning: hl2sdk-{} was not found, and will not be included in build.'.format(sdk))
|
|
||||||
|
|
||||||
if builder.options.mms_path:
|
if builder.options.mms_path:
|
||||||
self.mms_root = builder.options.mms_path
|
self.mms_root = builder.options.mms_path
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user