mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Clean up one path computation with /
operator
Because of the previous commit, we need to use `std::filesystem::path` anyways.
This commit is contained in:
parent
d3de22b2be
commit
91e90aaee0
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ void LocalStore::findRoots(const Path & path, std::filesystem::file_type type, R
|
|||
else {
|
||||
target = absPath(target, dirOf(path));
|
||||
if (!pathExists(target)) {
|
||||
if (isInDir(path, stateDir + "/" + gcRootsDir + "/auto")) {
|
||||
if (isInDir(path, std::filesystem::path{stateDir.get()} / gcRootsDir / "auto")) {
|
||||
printInfo("removing stale link from '%1%' to '%2%'", path, target);
|
||||
unlink(path.c_str());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue