⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 136201 in webkit


Ignore:
Timestamp:
Nov 29, 2012, 8:43:04 PM (14 years ago)
Author:
dpranke@chromium.org
Message:

Ignore errors when removing directories on win32 during autoinstall
​https://bugs.webkit.org/show_bug.cgi?id=103699

Unreviewed, build fix.

I think this will work on win32; if not, I'll have to actually
reproduce this :). The problem is that the logilab files
appear to contain a write-protected file, and deleting those
is problematic on windows.

  • Scripts/webkitpy/common/system/autoinstall.py:

(AutoInstaller._install):
(AutoInstaller.install):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r136195 r136201  
     12012-11-29  Dirk Pranke  <dpranke@chromium.org>
     2
     3        Ignore errors when removing directories on win32 during autoinstall
     4        https://bugs.webkit.org/show_bug.cgi?id=103699
     5
     6        Unreviewed, build fix.
     7
     8        I think this will work on win32; if not, I'll have to actually
     9        reproduce this :). The problem is that the logilab files
     10        appear to contain a write-protected file, and deleting those
     11        is problematic on windows.
     12
     13        * Scripts/webkitpy/common/system/autoinstall.py:
     14        (AutoInstaller._install):
     15        (AutoInstaller.install):
     16
    1172012-11-29  Dirk Pranke  <dpranke@chromium.org>
    218
  • trunk/Tools/Scripts/webkitpy/common/system/autoinstall.py

    r136195 r136201  
    338338        if os.path.exists(target_path):
    339339            if os.path.isdir(target_path):
    340                 shutil.rmtree(target_path)
     340                shutil.rmtree(target_path, ignore_errors=True)
    341341            else:
    342342                os.remove(target_path)
    … …  
    409409            raise Exception(message)
    410410        finally:
    411             shutil.rmtree(scratch_dir)
     411            shutil.rmtree(scratch_dir, ignore_errors=True)
    412412        _log.debug('Auto-installed %s to:' % url)
    413413        _log.debug('    "%s"' % target_path)
Note: See TracChangeset for help on using the changeset viewer.