mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
* Print what generation we are switching to; honour --dry-run flag.
This commit is contained in:
parent
0616b7feea
commit
6551b36790
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue