about summary refs log tree commit diff
path: root/scripts/nix-channel.in
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2009-12-09T19·36+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2009-12-09T19·36+0000
commit7ca997263680025a7cf5386a44efcb0a9949315e (patch)
tree78875522ac069f4dc0c0c1ef539216a5b0db3487 /scripts/nix-channel.in
parentc4c84d1edb4e0dd4ed77a9b2d1386834cdfaaa34 (diff)
* When doing a nix-pull, remove old manifests downloaded from the same
  URL.  This prevents lots of old cruft accumulating in
  /nix/var/nix/manifests.

Diffstat (limited to 'scripts/nix-channel.in')
-rw-r--r--scripts/nix-channel.in5
1 files changed, 0 insertions, 5 deletions
diff --git a/scripts/nix-channel.in b/scripts/nix-channel.in
index db5d35c6eba1..3688063cba4e 100644
--- a/scripts/nix-channel.in
+++ b/scripts/nix-channel.in
@@ -88,11 +88,6 @@ sub update {
     # source.
     if (-W "$stateDir/manifests") {
 
-        # Remove all the old manifests.
-        for my $manifest (glob "$stateDir/manifests/*.nixmanifest") {
-            unlink $manifest or die "cannot remove `$manifest': $!";
-        }
-
         # Pull cache manifests.
         foreach my $url (@channels) {
             #print "pulling cache manifest from `$url'\n";