Skip to content

Commit

Permalink
test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tp7309 committed Mar 26, 2023
1 parent 9434837 commit 7d5654f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions updater.py
Expand Up @@ -109,8 +109,7 @@ def reporthook(a, b, c):
print("\rdownloading: %5.1f%%" % (a * b * 100.0 / c), end="")
try:
if url.lower().startswith('http'):
filepath, _ = urllib.request.urlretrieve(url, store_pathreporthook=reporthook)
print("%s download finished!"%(filepath))
urllib.request.urlretrieve(url, store_path, reporthook=reporthook)
else:
raise ValueError from None
if not os.path.exists(store_path):
Expand All @@ -128,9 +127,9 @@ def download_release(repo_owner, repo_name, last_update_time, refile, destpath):
try:
print("download_release: %s/%s, min_publish_time: %s, destpath: %s"
% (repo_owner, repo_name, last_update_time, destpath))
response = None
response = ''
if url.lower().startswith('http'):
with urllib.Request.request(url) as connection:
with urllib.request.urlopen(url) as connection:
response = json.loads(connection.read().decode('utf-8'))
else:
raise ValueError from None
Expand Down Expand Up @@ -293,11 +292,11 @@ def initEnv():

def main():
initEnv()
enjarify_updater()
dex2jar_updater()
jadx_updater()
# enjarify_updater()
# dex2jar_updater()
# jadx_updater()
apktool_updater()
fernflower_updater()
# fernflower_updater()


if __name__ == '__main__':
Expand Down

0 comments on commit 7d5654f

Please sign in to comment.