chromium/updater: Fix getting latest versions

Comparing the current version with the version in sources list and
accidentally swapping the version arguments isn't going to get very far
because every new version that will come up will then be treated as "we
already have that version".

So we're now using versionOlder and also a check whether the version is
the *same* as the one in sources.nix.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2016-03-05 02:55:00 +01:00
parent b0f70e2ebb
commit 8d5accb691
No known key found for this signature in database
GPG Key ID: D0EBD0EC8C2DC961

View File

@ -181,7 +181,8 @@ in rec {
isLatest = channel: version: let
ourVersion = sources.${channel}.version or null;
in if ourVersion == null then false
else lib.versionAtLeast version sources.${channel}.version;
else lib.versionOlder version sources.${channel}.version
|| version == sources.${channel}.version;
# We only support GNU/Linux right now.
linuxChannels = let