mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
chromium: Fix updater to handle versions > 26.
Starting with version 26, there is a chromium-$version-lite package and it is an LZMA archive as well, so download size is reduced by about 44%. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
8f51038a13
commit
01cbb17c12
@ -78,7 +78,12 @@ get_channel_exprs()
|
||||
do
|
||||
channel="${chline%%,*}";
|
||||
version="${chline##*,}";
|
||||
url="${bucket_url%/}/chromium-$version.tar.bz2";
|
||||
|
||||
# XXX: Remove case after version 26 is stable:
|
||||
case "${version%%.*}" in
|
||||
26) url="${bucket_url%/}/chromium-$version-lite.tar.xz";;
|
||||
*) url="${bucket_url%/}/chromium-$version.tar.bz2";;
|
||||
esac;
|
||||
|
||||
echo -n "Checking if sha256 of version $version is cached..." >&2;
|
||||
if sha256="$(sha_lookup "$version")";
|
||||
|
Loading…
Reference in New Issue
Block a user