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 17
17
18
18
- name : Run gclient sync
19
19
run : |
20
- pip3 install requests
21
20
gclient config --name=src --unmanaged https://github.com/${{ github.repository }}
22
21
gclient sync -v --no-history --shallow --nohooks
23
22
Original file line number Diff line number Diff line change 32
32
run : |
33
33
sudo apt-get update
34
34
sudo apt-get install -y rpm2cpio cpio binutils-${{ matrix.triple }}
35
- pip3 install requests
36
35
37
36
- name : Install depot_tools
38
37
run : |
Original file line number Diff line number Diff line change @@ -13,9 +13,8 @@ The Flutter embedder for Tizen.
13
13
- [ LLVM] ( https://apt.llvm.org ) (10 or later)
14
14
- ` sudo apt install clang-12 `
15
15
- Additional dependencies
16
- - ` sudo apt install git python3 python3-pip rpm2cpio cpio `
16
+ - ` sudo apt install git python3 rpm2cpio cpio `
17
17
- ` sudo apt install binutils-arm-linux-gnueabi binutils-aarch64-linux-gnu binutils-i686-linux-gnu `
18
- - ` pip3 install requests `
19
18
20
19
### Environment setup
21
20
Original file line number Diff line number Diff line change 3
3
# Use of this source code is governed by a BSD-style license that can be
4
4
# found in the LICENSE file.
5
5
6
- import requests
7
6
import shutil
8
7
import sys
9
8
import urllib .request
@@ -22,11 +21,13 @@ def main():
22
21
if stamp_file .is_file ():
23
22
stamp = stamp_file .read_text ().strip ()
24
23
25
- version = ''
26
24
# The GitHub REST API cannot be used in the company network due to an
27
25
# "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 = ''
30
31
if '/tag/' in redirected_url :
31
32
version = redirected_url .split ('/tag/' )[- 1 ]
32
33
You can’t perform that action at this time.
0 commit comments