chromium: Fix updater for version 26 and newer.

The updater was actually getting the -lite version, which our expression won't
build with, except if we switch some bundled dependencies to those in nixpkgs.

Of course the problem with fetching version 27 was me being stupid and using a
case statement in the updater, as if there won't be any version after 26 ;-)

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2013-03-26 21:06:36 +01:00
parent a0716f28af
commit adfc5939a7
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -62,7 +62,7 @@ then
sha256="$(nix_getattr "$output_file" "$channel.sha256")";
fi;
sha_insert "$version" "$sha256"
sha_insert "$version" "$sha256";
echo "$sha256";
}
else
@ -80,10 +80,11 @@ get_channel_exprs()
version="${chline##*,}";
# 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;
if [ "${version%%.*}" -ge 26 ]; then
url="${bucket_url%/}/chromium-$version.tar.xz";
else
url="${bucket_url%/}/chromium-$version.tar.bz2";
fi;
echo -n "Checking if sha256 of version $version is cached..." >&2;
if sha256="$(sha_lookup "$version")";