mirror of
https://github.com/NixOS/nix
synced 2025-07-10 04:43:53 +02:00
profile install: skip and warn on installing package twice
This commit is contained in:
parent
d28a240aa6
commit
14adff1711
2 changed files with 23 additions and 1 deletions
|
@ -64,6 +64,9 @@ nix profile install $flake1Dir
|
|||
[[ $($TEST_HOME/.local/state/nix/profile/bin/hello) = "Hello World" ]]
|
||||
unset NIX_CONFIG
|
||||
|
||||
# Test conflicting package install.
|
||||
nix profile install $flake1Dir 2>&1 | grep "warning: 'flake1' is already installed"
|
||||
|
||||
# Test upgrading a package.
|
||||
printf NixOS > $flake1Dir/who
|
||||
printf 2.0 > $flake1Dir/version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue