summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/browsers/chromium/update.py
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2021-02-01 14:14:03 +0100
committerGitHub <noreply@github.com>2021-02-01 14:14:03 +0100
commit3151fd59e73347be946b39bad3c4db2c9a1cf4bb (patch)
tree15c4dd447ccc380b0e862cc095d45bd8ed34eed4 /pkgs/applications/networking/browsers/chromium/update.py
parent28bbe671a00eaa35b5aceaf5fca9ab88bc39371d (diff)
parent268600e6b787fb6310634a2ab48e541c6357b0e9 (diff)
Merge pull request #111340 from primeos/ungoogled-chromium
ungoogled-chromium: 87.0.4280.141 -> 88.0.4324.104
Diffstat (limited to 'pkgs/applications/networking/browsers/chromium/update.py')
-rwxr-xr-xpkgs/applications/networking/browsers/chromium/update.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/applications/networking/browsers/chromium/update.py b/pkgs/applications/networking/browsers/chromium/update.py
index ec656ef8527f..d6788fa41927 100755
--- a/pkgs/applications/networking/browsers/chromium/update.py
+++ b/pkgs/applications/networking/browsers/chromium/update.py
@@ -166,9 +166,18 @@ with urlopen(HISTORY_URL) as resp:
f'{DEB_URL}/google-chrome-{google_chrome_suffix}/' +
f'google-chrome-{google_chrome_suffix}_{build["version"]}-1_amd64.deb')
except subprocess.CalledProcessError:
- # This build isn't actually available yet. Continue to
- # the next one.
- continue
+ if (channel_name == 'ungoogled-chromium' and 'sha256' in channel and
+ build['version'].split('.')[0] == last_channels['stable']['version'].split('.')[0]):
+ # Sometimes ungoogled-chromium is updated to a newer tag than
+ # the latest stable Chromium version. In this case we'll set
+ # sha256bin64 to null and the Nixpkgs code will fall back to
+ # the latest stable Google Chrome (only required for
+ # Widevine/DRM which is disabled by default):
+ channel['sha256bin64'] = None
+ else:
+ # This build isn't actually available yet. Continue to
+ # the next one.
+ continue
channel['deps'] = get_channel_dependencies(channel['version'])
if channel_name == 'stable':