Skip to content

Commit

Permalink
fix bug in update_repo_CI.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Lovely-XPP committed Dec 24, 2024
1 parent 5891af6 commit f57ca6b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions utilities/update_repo_CI.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def generate_changelog_readme(self):


def download_database(self):
r = requests.get(self.url, verify = False)
r = requests.get(self.url)
path = os.path.abspath(os.path.join(self.root, "database.json"))
with open(path, 'wb') as f:
f.write(r.content)
Expand Down Expand Up @@ -596,7 +596,7 @@ def update_OpenCore(self):
print(self.Colors("[Info] Downloading OpenCorePkg...", fcolor='green'))
headers = {"Auth": "{abcd}", "accept": "*/*",
"accept-encoding": "gzip;deflate;br"}
response = requests.request("GET", oc['link'], headers=headers, verify=False)
response = requests.request("GET", oc['link'], headers=headers)
with open(tmp, "wb") as f:
f.write(response.content)
print(self.Colors("[Info] Download Done", fcolor='green'))
Expand Down Expand Up @@ -723,7 +723,7 @@ def update_OpenCore(self):
tmp = os.path.abspath(os.path.join(tmp_path, kext + '.zip'))
headers = {"Auth": "{abcd}", "accept": "*/*",
"accept-encoding": "gzip;deflate;br"}
response = requests.request("GET", self.remote[kext]['link'], headers=headers, verify=False)
response = requests.request("GET", self.remote[kext]['link'], headers=headers)
with open(tmp, "wb") as f:
f.write(response.content)
progress[1] = progress[1] + 1
Expand Down Expand Up @@ -806,7 +806,6 @@ def update_OpenCore(self):
if len(err) > 0:
first_time = 0
for i in err:
update_kexts_success.pop(i)
if first_time == 0:
print(self.Colors(
"[Error] These Kext Package(s) Update Unsuccessfully:", fcolor='red'))
Expand Down

0 comments on commit f57ca6b

Please sign in to comment.