1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 17:51:15 +02:00

createGeneration(): Take a StorePath

This commit is contained in:
Eelco Dolstra 2020-09-03 11:06:56 +02:00
parent 94a043ff3b
commit b74f5cdd23
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
5 changed files with 12 additions and 7 deletions

View file

@ -708,7 +708,9 @@ static void opSet(Globals & globals, Strings opFlags, Strings opArgs)
}
debug(format("switching to new user environment"));
Path generation = createGeneration(ref<LocalFSStore>(store2), globals.profile, drv.queryOutPath());
Path generation = createGeneration(
ref<LocalFSStore>(store2), globals.profile,
store2->parseStorePath(drv.queryOutPath()));
switchLink(globals.profile, generation);
}