Changeset 65126 in webkit


Ignore:
Timestamp:
Aug 10, 2010 11:19:23 PM (14 years ago)
Author:
dpranke@chromium.org
Message:

2010-08-10 Dirk Pranke <dpranke@chromium.org>

Reviewed by Eric Seidel.

webkit-patch should refuse to run under Win32 Python
https://bugs.webkit.org/show_bug.cgi?id=40962

Given that there are lots of places in webkit-patch's code that
assume unix-style filenames (forward slashes), webkit-patch fails
with weird file-not-found errors when run under a native windows
Python. It would be nice if we just trapped this and errored out
at the beginning, rather than producing unpredictable errors.

  • Scripts/webkit-patch:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r65121 r65126  
     12010-08-10  Dirk Pranke  <dpranke@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        webkit-patch should refuse to run under Win32 Python
     6        https://bugs.webkit.org/show_bug.cgi?id=40962
     7
     8        Given that there are lots of places in webkit-patch's code that
     9        assume unix-style filenames (forward slashes), webkit-patch fails
     10        with weird file-not-found errors when run under a native windows
     11        Python. It would be nice if we just trapped this and errored out
     12        at the beginning, rather than producing unpredictable errors.
     13
     14        * Scripts/webkit-patch:
     15
    1162010-08-10  Kent Tamura  <tkent@chromium.org>
    217
  • trunk/WebKitTools/Scripts/webkit-patch

    r60066 r65126  
    3939import webkitpy.python24.versioning as versioning
    4040
     41_log = logging.getLogger("webkit-patch")
    4142
    4243def main():
     
    5152
    5253    versioning.check_version()
     54   
     55    if sys.platform == "win32":
     56        _log.fatal("webkit-patch is only supported under Cygwin Python, "
     57                   "not Win32 Python")
     58        sys.exit(1)
    5359
    5460    # Import webkit-patch code only after version-checking so that
Note: See TracChangeset for help on using the changeset viewer.