From a01629894db0d961622b06c9c691c7cc0fbedff0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 29 Jul 2003 15:19:03 +0000 Subject: [PATCH] * Use `--query --requisites' and include successors when pushing. Don't use `--query --generators' anymore. --- scripts/nix-push.in | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/nix-push.in b/scripts/nix-push.in index 4a6426fe0..10efc48be 100644 --- a/scripts/nix-push.in +++ b/scripts/nix-push.in @@ -13,7 +13,7 @@ foreach my $id (@ARGV) { my @paths; - open PATHS, "nix --query --refs $id 2> /dev/null |" or die "nix -qr"; + open PATHS, "nix --query --requisites --include-successors $id 2> /dev/null |" or die "nix -qr"; while () { chomp; die "bad: $_" unless /^\//; @@ -22,13 +22,13 @@ foreach my $id (@ARGV) { close PATHS; # Also add all normal forms that are contained in these paths. - open PATHS, "nix --query --generators --path @paths |" or die "nix -qg"; - while () { - chomp; - die "bad: $_" unless /^\//; - push @paths, $_; - } - close PATHS; +# open PATHS, "nix --query --generators --path @paths |" or die "nix -qg"; +# while () { +# chomp; +# die "bad: $_" unless /^\//; +# push @paths, $_; +# } +# close PATHS; # For each path, create a Fix expression that turns the path into # a Nix archive.