1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

* Don't decompress the manifests in /nix/var/nix/manifest. This saves

disk space, and, since they're typically only decompressed once (to
  fill the manifest cache), doesn't make things slower.
This commit is contained in:
Eelco Dolstra 2011-11-16 16:25:38 +00:00
parent 63ee5e4d2a
commit d7d7910ba4
2 changed files with 9 additions and 12 deletions

View file

@ -53,8 +53,14 @@ sub addPatch {
sub readManifest_ {
my ($manifest, $addNAR, $addPatch) = @_;
open MANIFEST, "<$manifest"
or die "cannot open `$manifest': $!";
# Decompress the manifest if necessary.
if ($manifest =~ /\.bz2$/) {
open MANIFEST, "$Nix::Config::bzip2 -d < $manifest |"
or die "cannot decompress `$manifest': $!";
} else {
open MANIFEST, "<$manifest"
or die "cannot open `$manifest': $!";
}
my $inside = 0;
my $type;