Skip to content
Snippets Groups Projects
Commit 6551b367 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

* Print what generation we are switching to; honour --dry-run flag.

parent 0616b7fe
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment