about summary refs log tree commit diff
path: root/scripts/nix-push.in
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2015-09-17T08·34+0200
committerVladimír Čunát <vcunat@gmail.com>2015-09-17T10·06+0200
commit64f9b511be8a77ba98c0dd40df022b7d299293d4 (patch)
treee1ff9d259be2d7c859f4bd6f078d9c94aa379da3 /scripts/nix-push.in
parent55b11461505f60aa9f73b569d59df3699c293f71 (diff)
nix-env --upgrade: avoid unexpected downgrades
Until now, if one explicitly installed a low-priority version,
nix-env --upgrade would downgrade it by default and even with --leq.
Let's never accept an upgrade with version not matching the upgradeType.
Additionally, let's never decrease the priority of an installed package;
you can use --install to force that.

Also refactor to use variable bestVersion instead of bestName,
as only version was used from it.
Diffstat (limited to 'scripts/nix-push.in')
0 files changed, 0 insertions, 0 deletions