comparison updatechromium.py @ 38:310a73329fa4

Update updatechromium.py unnecessary because pacman does that by itself committer: GitHub <noreply@github.com>
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Mon, 21 Jun 2021 10:26:44 -0400
parents 8e49e6662429
children a93c352af05e
comparison
equal deleted inserted replaced
37:b651fc366a8d 38:310a73329fa4
33 urllib.request.urlretrieve(url, filename=output_path, reporthook=t.update_to) 33 urllib.request.urlretrieve(url, filename=output_path, reporthook=t.update_to)
34 34
35 if check_for_file("chromium") == 0: 35 if check_for_file("chromium") == 0:
36 print("Chromium is still running! Exiting...") 36 print("Chromium is still running! Exiting...")
37 sys.exit(1) 37 sys.exit(1)
38 if check_for_file("zstd") == 2:
39 print("zstd not found! Exiting...")
40 sys.exit(1)
41 if check_for_file("tar") == 2:
42 print("tar not found! Exiting...")
43 sys.exit(1)
44 OWNER = "ungoogled-software" 38 OWNER = "ungoogled-software"
45 REPO = "ungoogled-chromium-archlinux" 39 REPO = "ungoogled-chromium-archlinux"
46 r = urllib.request.urlopen(f"https://api.github.com/repos/{OWNER}/{REPO}/releases") 40 r = urllib.request.urlopen(f"https://api.github.com/repos/{OWNER}/{REPO}/releases")
47 json = json.loads(r.read()) 41 json = json.loads(r.read())
48 for i in json[0]["assets"]: 42 for i in json[0]["assets"]: