File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed
Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 1717
1818 - name : Run gclient sync
1919 run : |
20- pip3 install requests
2120 gclient config --name=src --unmanaged https://github.com/${{ github.repository }}
2221 gclient sync -v --no-history --shallow --nohooks
2322
Original file line number Diff line number Diff line change 3232 run : |
3333 sudo apt-get update
3434 sudo apt-get install -y rpm2cpio cpio binutils-${{ matrix.triple }}
35- pip3 install requests
3635
3736 - name : Install depot_tools
3837 run : |
Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ The Flutter embedder for Tizen.
1313- [ LLVM] ( https://apt.llvm.org ) (10 or later)
1414 - ` sudo apt install clang-12 `
1515- Additional dependencies
16- - ` sudo apt install git python3 python3-pip rpm2cpio cpio `
16+ - ` sudo apt install git python3 rpm2cpio cpio `
1717 - ` sudo apt install binutils-arm-linux-gnueabi binutils-aarch64-linux-gnu binutils-i686-linux-gnu `
18- - ` pip3 install requests `
1918
2019### Environment setup
2120
Original file line number Diff line number Diff line change 33# Use of this source code is governed by a BSD-style license that can be
44# found in the LICENSE file.
55
6- import requests
76import shutil
87import sys
98import urllib .request
@@ -22,11 +21,13 @@ def main():
2221 if stamp_file .is_file ():
2322 stamp = stamp_file .read_text ().strip ()
2423
25- version = ''
2624 # The GitHub REST API cannot be used in the company network due to an
2725 # "API rate limit exceeded" error. The following is a workaround.
28- request = requests .get ('{}/latest' .format (github_url ))
29- redirected_url = request .url
26+ redirected_url = ''
27+ with urllib .request .urlopen ('{}/latest' .format (github_url )) as response :
28+ redirected_url = response .geturl ()
29+
30+ version = ''
3031 if '/tag/' in redirected_url :
3132 version = redirected_url .split ('/tag/' )[- 1 ]
3233
You can’t perform that action at this time.
0 commit comments