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:
parent
b0f70e2ebb
commit
8d5accb691
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user