1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 02:21:16 +02:00

* In nix-store: added query `--referers-closure' that returns the

closure of the referers relation rather than the references
  relation, i.e., the set of all paths that directly or indirectly
  refer to the given path.  Note that contrary to the references
  closure this set is not fixed; it can change as paths are added to
  or removed from the store.
This commit is contained in:
Eelco Dolstra 2005-01-25 11:18:03 +00:00
parent 80faa2f98a
commit 52bf9b86bb
5 changed files with 31 additions and 10 deletions

View file

@ -20,4 +20,7 @@ echo "$deps" | grep -q "$outPath"
if echo "$deps" | grep -q "dependencies-input-1"; then exit 1; fi
# Input-2 is retained.
echo "$deps" | grep -q "dependencies-input-2"
input2OutPath=$(echo "$deps" | grep "dependencies-input-2")
# The referers closure of input-2 should include outPath.
$TOP/src/nix-store/nix-store -q --referers-closure "$input2OutPath" | grep "$outPath"