forked from lix-project/lix
* Future proofing: assume we can read manifests up to version 10
(which should therefore be backwards compatible).
This commit is contained in:
parent
b88460bcbc
commit
7e05b8b75e
|
@ -19,10 +19,15 @@ my %localPaths;
|
||||||
my %patches;
|
my %patches;
|
||||||
|
|
||||||
for my $manifest (glob "$manifestDir/*.nixmanifest") {
|
for my $manifest (glob "$manifestDir/*.nixmanifest") {
|
||||||
if (readManifest($manifest, \%narFiles, \%localPaths, \%patches) < 3) {
|
my $version = readManifest($manifest, \%narFiles, \%localPaths, \%patches);
|
||||||
|
if ($version < 3) {
|
||||||
print STDERR "you have an old-style manifest `$manifest'; please delete it\n";
|
print STDERR "you have an old-style manifest `$manifest'; please delete it\n";
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
|
if ($version >= 10) {
|
||||||
|
print STDERR "manifest `$manifest' is too new; please delete it or upgrade Nix\n";
|
||||||
|
exit 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue