mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 23:02:27 +00:00
* Print what generation we are switching to; honour --dry-run flag.
This commit is contained in:
parent
0616b7feea
commit
6551b36790
@ -528,6 +528,11 @@ static void switchGeneration(Globals & globals, int dstGen)
|
||||
else
|
||||
throw Error(format("generation %1% does not exist") % dstGen);
|
||||
|
||||
printMsg(lvlInfo, format("switching from generation %1% to %2%")
|
||||
% curGen % dst.number);
|
||||
|
||||
if (globals.dryRun) return;
|
||||
|
||||
switchLink(globals.profile, dst.path);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user