about summary refs log tree commit diff
path: root/scripts/nix-push.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/nix-push.in')
-rw-r--r--scripts/nix-push.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/nix-push.in b/scripts/nix-push.in
index b5899e45839a..356fe1952207 100644
--- a/scripts/nix-push.in
+++ b/scripts/nix-push.in
@@ -139,7 +139,12 @@ for (my $n = 0; $n < scalar @storepaths; $n++) {
         while (<PREDS>) {
             chomp;
             die unless (/^\//);
-            print MANIFEST "  SuccOf: $_\n";
+            my $pred = $_;
+            # Only include predecessors that are themselves being
+            # pushed.
+            if (defined $storepaths{$pred}) {
+                print MANIFEST "  SuccOf: $pred\n";
+            }
         }
         close PREDS;
     }