Changeset 269988 in webkit
- Timestamp:
- Nov 18, 2020 2:41:41 PM (3 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/CISupport/download-built-product
r226395 r269988 1 1 #!/usr/bin/env python 2 2 # 3 # Copyright (C) 2009 Apple Inc. All rights reserved.3 # Copyright (C) 2009, 2020 Apple Inc. All rights reserved. 4 4 # Copyright (C) 2012 Google Inc. All rights reserved. 5 5 # … … 9 9 # 10 10 # 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. 12 12 # 2. Redistributions in binary form must reproduce the above copyright 13 13 # 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. 15 15 # 16 16 # THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY … … 30 30 import subprocess 31 31 import sys 32 import urllib 32 33 if sys.version_info > (3, 0): 34 from urllib.request import urlretrieve as urllib_urlretrieve 35 from urllib.parse import quote as urllib_quote 36 else: 37 from urllib import quote as urllib_quote 38 from urllib import urlretrieve as urllib_urlretrieve 33 39 34 40 … … 47 53 48 54 if sys.platform == 'win32': # curl is not availble on Windows (outside of cygwin) 49 urllib .urlretrieve(url, archivePath)55 urllib_urlretrieve(url, archivePath) 50 56 return 0 51 57 52 return subprocess.call(["curl", "--fail", "--output", archivePath, url ])58 return subprocess.call(["curl", "--fail", "--output", archivePath, urllib_quote(url, safe=':/')]) 53 59 54 60 -
trunk/Tools/ChangeLog
r269983 r269988 1 2020-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 1 14 2020-11-18 Chris Dumez <cdumez@apple.com> 2 15
Note: See TracChangeset
for help on using the changeset viewer.