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:
parent
c4c84d1edb
commit
7ca9972636
2 changed files with 23 additions and 8 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue