Changeset 267035 in webkit
- Timestamp:
- Sep 14, 2020 1:22:20 PM (4 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r267034 r267035 1 2020-09-14 Jonathan Bedard <jbedard@apple.com> 2 3 [webkitcorepy] Disable AutoInstaller with environment variable (Follow-up fix) 4 https://bugs.webkit.org/show_bug.cgi?id=216396 5 <rdar://problem/68680933> 6 7 Unreviewed follow-up fix. 8 9 r267019 accidently landed without the support of r267019. 10 11 * Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py: Bump version. 12 * Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py: 13 (AutoInstall.enabled): Add False and No to the list of environment variables which resolve to 'False'. 14 (AutoInstall.set_directory): Use AutoInstall.log instead of print(...). 15 1 16 2020-09-14 Fujii Hironori <Hironori.Fujii@sony.com> 2 17 -
trunk/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py
r267023 r267035 36 36 from webkitcorepy.output_capture import LoggerCapture, OutputCapture, OutputDuplicate 37 37 38 version = Version(0, 4, 9)38 version = Version(0, 4, 10) 39 39 40 40 from webkitcorepy.autoinstall import Package, AutoInstall -
trunk/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py
r267023 r267035 326 326 @classmethod 327 327 def enabled(cls): 328 if os.environ.get(cls.DISABLE_ENV_VAR) not in ['0', 'FALSE', ' false', 'NO', 'no', None]:328 if os.environ.get(cls.DISABLE_ENV_VAR) not in ['0', 'FALSE', 'False', 'false', 'NO', 'No', 'no', None]: 329 329 return False 330 330 return True if cls.directory else None … … 360 360 361 361 if cls.enabled() is False: 362 print('Request to set autoinstall directory to {}'.format(directory))363 print('Environment variable {}={} overriding request'.format(362 AutoInstall.log('Request to set autoinstall directory to {}'.format(directory)) 363 AutoInstall.log('Environment variable {}={} overriding request'.format( 364 364 cls.DISABLE_ENV_VAR, 365 365 os.environ.get(cls.DISABLE_ENV_VAR),
Note: See TracChangeset
for help on using the changeset viewer.