forked from lix-project/lix
For auto roots, show the intermediate link
I.e. "nix-store -q --roots" will now show (for example) /home/eelco/Dev/nixpkgs/result rather than /nix/var/nix/gcroots/auto/53222qsppi12s2hkap8dm2lg8xhhyk6v
This commit is contained in:
parent
4f4a14453a
commit
c086183843
|
@ -329,7 +329,7 @@ static void findRoots(StoreAPI & store, const Path & path, Roots & roots)
|
||||||
struct stat st2 = lstat(target);
|
struct stat st2 = lstat(target);
|
||||||
if (!S_ISLNK(st2.st_mode)) return;
|
if (!S_ISLNK(st2.st_mode)) return;
|
||||||
Path target2 = readLink(target);
|
Path target2 = readLink(target);
|
||||||
if (isInStore(target2)) foundRoot(store, path, target2, roots);
|
if (isInStore(target2)) foundRoot(store, target, target2, roots);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue