1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 10:11:47 +02:00

* 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.
This commit is contained in:
Eelco Dolstra 2009-12-09 19:36:54 +00:00
parent c4c84d1edb
commit 7ca9972636
2 changed files with 23 additions and 8 deletions

View file

@ -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";