mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 23:12:44 +01:00
Add priority for nix profile install
This commit is contained in:
parent
54457382f9
commit
aefc6c4f41
3 changed files with 45 additions and 3 deletions
|
|
@ -93,8 +93,9 @@ static void createLinks(State & state, const Path & srcDir, const Path & dstDir,
|
|||
auto prevPriority = state.priorities[dstFile];
|
||||
if (prevPriority == priority)
|
||||
throw Error(
|
||||
"packages '%1%' and '%2%' have the same priority %3%; "
|
||||
"files '%1%' and '%2%' have the same priority %3%; "
|
||||
"use 'nix-env --set-flag priority NUMBER INSTALLED_PKGNAME' "
|
||||
"or 'nix profile --priority NUMBER INSTALLED_PKGNAME' "
|
||||
"to change the priority of one of the conflicting packages"
|
||||
" (0 being the highest priority)",
|
||||
srcFile, readLink(dstFile), priority);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue