Skip to content

Commit

Permalink
gnome3.updateScript: optimize unfrozen updates
Browse files Browse the repository at this point in the history
When the updates are not frozen, there is no need to try to extract versions from attributes.

(cherry picked from commit 4239bf1)
  • Loading branch information
jtojnar committed Apr 25, 2020
1 parent eff0f82 commit 915d2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/desktops/gnome-3/update.nix
Expand Up @@ -12,7 +12,7 @@ let
minorAvailable = builtins.length versionComponents > 1 && builtins.match "[0-9]+" minorVersion != null;
nextMinor = builtins.fromJSON minorVersion + 1;
upperBound = "${lib.versions.major packageVersion}.${builtins.toString nextMinor}";
in lib.optionalString (minorAvailable && freeze) ''--upper-bound="${upperBound}"'';
in lib.optionalString (freeze && minorAvailable) ''--upper-bound="${upperBound}"'';
updateScript = writeScript "gnome-update-script" ''
#!${stdenv.shell}
set -o errexit
Expand Down

0 comments on commit 915d2c3

Please sign in to comment.