Merge pull request #275120 from rhysmdnz/edge-updates-stable
microsoft-edge: Change update script to have consistent ordering of versions
This commit is contained in:
@@ -180,7 +180,9 @@ stdenv.mkDerivation rec {
|
||||
--add-flags ${lib.escapeShellArg commandLineArgs}
|
||||
'';
|
||||
|
||||
passthru.updateScript = ./update.py;
|
||||
# We only want automatic updates for stable, beta and dev will get updated by the same script
|
||||
# and are only used for testing.
|
||||
passthru = lib.optionalAttrs (channel == "stable") { updateScript = ./update.py; };
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://www.microsoft.com/en-us/edge";
|
||||
|
||||
@@ -31,7 +31,7 @@ def latest_packages(packages: bytes):
|
||||
old_package = latest_packages[channel]
|
||||
if old_package.get_version() < package.get_version(): # type: ignore
|
||||
latest_packages[channel] = package
|
||||
return latest_packages
|
||||
return OrderedDict(sorted(latest_packages.items(), key=lambda x:x[0]))
|
||||
|
||||
|
||||
def nix_expressions(latest: dict[str, Packages]):
|
||||
|
||||
Reference in New Issue
Block a user