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:
Eelco Dolstra 2013-10-22 11:39:10 +02:00
parent 4f4a14453a
commit c086183843
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ static void findRoots(StoreAPI & store, const Path & path, Roots & roots)
struct stat st2 = lstat(target);
if (!S_ISLNK(st2.st_mode)) return;
Path target2 = readLink(target);
if (isInStore(target2)) foundRoot(store, path, target2, roots);
if (isInStore(target2)) foundRoot(store, target, target2, roots);
}
}
}