Changeset 267035 in webkit


Ignore:
Timestamp:
Sep 14, 2020 1:22:20 PM (4 years ago)
Author:
Jonathan Bedard
Message:

[webkitcorepy] Disable AutoInstaller with environment variable (Follow-up fix)
https://bugs.webkit.org/show_bug.cgi?id=216396
<rdar://problem/68680933>

Unreviewed follow-up fix.

r267019 accidently landed without the support of r267019.

  • Scripts/libraries/webkitcorepy/webkitcorepy/init.py: Bump version.
  • Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py:

(AutoInstall.enabled): Add False and No to the list of environment variables which resolve to 'False'.
(AutoInstall.set_directory): Use AutoInstall.log instead of print(...).

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r267034 r267035  
     12020-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
    1162020-09-14  Fujii Hironori  <Hironori.Fujii@sony.com>
    217
  • trunk/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/__init__.py

    r267023 r267035  
    3636from webkitcorepy.output_capture import LoggerCapture, OutputCapture, OutputDuplicate
    3737
    38 version = Version(0, 4, 9)
     38version = Version(0, 4, 10)
    3939
    4040from webkitcorepy.autoinstall import Package, AutoInstall
  • trunk/Tools/Scripts/libraries/webkitcorepy/webkitcorepy/autoinstall.py

    r267023 r267035  
    326326    @classmethod
    327327    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]:
    329329            return False
    330330        return True if cls.directory else None
     
    360360
    361361        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(
    364364                cls.DISABLE_ENV_VAR,
    365365                os.environ.get(cls.DISABLE_ENV_VAR),
Note: See TracChangeset for help on using the changeset viewer.