* 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
|
else
|
||||||
throw Error(format("generation %1% does not exist") % dstGen);
|
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);
|
switchLink(globals.profile, dst.path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue