Changeset 269988 in webkit


Ignore:
Timestamp:
Nov 18, 2020 2:41:41 PM (3 years ago)
Author:
Matt Lewis
Message:

Big Sur testers failing to download build products
https://bugs.webkit.org/show_bug.cgi?id=219095

Reviewed by Aakash Jain.

Fixing the url parsing to deal with special characters. Also
reworking the imports to help with transition to python3.

  • CISupport/download-built-product:

(main):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/CISupport/download-built-product

    r226395 r269988  
    11#!/usr/bin/env python
    22#
    3 # Copyright (C) 2009 Apple Inc.  All rights reserved.
     3# Copyright (C) 2009, 2020 Apple Inc.  All rights reserved.
    44# Copyright (C) 2012 Google Inc. All rights reserved.
    55#
     
    99#
    1010# 1.  Redistributions of source code must retain the above copyright
    11 #     notice, this list of conditions and the following disclaimer. 
     11#     notice, this list of conditions and the following disclaimer.
    1212# 2.  Redistributions in binary form must reproduce the above copyright
    1313#     notice, this list of conditions and the following disclaimer in the
    14 #     documentation and/or other materials provided with the distribution. 
     14#     documentation and/or other materials provided with the distribution.
    1515#
    1616# THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
     
    3030import subprocess
    3131import sys
    32 import urllib
     32
     33if sys.version_info > (3, 0):
     34    from urllib.request import urlretrieve as urllib_urlretrieve
     35    from urllib.parse import quote as urllib_quote
     36else:
     37    from urllib import quote as urllib_quote
     38    from urllib import urlretrieve as urllib_urlretrieve
    3339
    3440
     
    4753
    4854    if sys.platform == 'win32':  # curl is not availble on Windows (outside of cygwin)
    49         urllib.urlretrieve(url, archivePath)
     55        urllib_urlretrieve(url, archivePath)
    5056        return 0
    5157
    52     return subprocess.call(["curl", "--fail", "--output", archivePath, url])
     58    return subprocess.call(["curl", "--fail", "--output", archivePath, urllib_quote(url, safe=':/')])
    5359
    5460
  • trunk/Tools/ChangeLog

    r269983 r269988  
     12020-11-18  Matt Lewis  <jlewis3@apple.com>
     2
     3        Big Sur testers failing to download build products
     4        https://bugs.webkit.org/show_bug.cgi?id=219095
     5
     6        Reviewed by Aakash Jain.
     7
     8        Fixing the url parsing to deal with special characters. Also
     9        reworking the imports to help with transition to python3.
     10       
     11        * CISupport/download-built-product:
     12        (main):
     13
    1142020-11-18  Chris Dumez  <cdumez@apple.com>
    215
Note: See TracChangeset for help on using the changeset viewer.