mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01: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
1 changed files with 6 additions and 1 deletions
|
@ -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 a new issue