pathsFromGraph: Remove obsolete printManifest feature
This commit is contained in:
parent
06831d14a1
commit
5939af52b3
@ -1,8 +1,6 @@
|
||||
# Parses a /nix/store/*-closure file and prints
|
||||
# various information.
|
||||
# By default, the nodes in the graph are printed to stdout.
|
||||
# If the environment variable printManifest is set,
|
||||
# then the graph is written as a manifest.
|
||||
# If printRegistration is set, then the graph is written
|
||||
# as a registration file for a manifest is written
|
||||
# in the `nix-store --load-db' format.
|
||||
@ -46,26 +44,7 @@ foreach my $graph (@ARGV) {
|
||||
}
|
||||
|
||||
|
||||
if ($ENV{"printManifest"} eq "1") {
|
||||
print "version {\n";
|
||||
print " ManifestVersion: 3\n";
|
||||
print "}\n";
|
||||
|
||||
foreach my $storePath (sort (keys %storePaths)) {
|
||||
my $base = basename $storePath;
|
||||
print "localPath {\n";
|
||||
print " StorePath: $storePath\n";
|
||||
print " CopyFrom: /tmp/inst-store/$base\n";
|
||||
print " References: ";
|
||||
foreach my $ref (@{$refs{$storePath}}) {
|
||||
print "$ref ";
|
||||
}
|
||||
print "\n";
|
||||
print "}\n";
|
||||
}
|
||||
}
|
||||
|
||||
elsif ($ENV{"printRegistration"} eq "1") {
|
||||
if ($ENV{"printRegistration"} eq "1") {
|
||||
# This is the format used by `nix-store --register-validity
|
||||
# --hash-given' / `nix-store --load-db'.
|
||||
foreach my $storePath (sort (keys %storePaths)) {
|
||||
|
Loading…
Reference in New Issue
Block a user