* Check the manifest version.
This commit is contained in:
parent
a7cee528c5
commit
f052c10eed
1 changed files with 4 additions and 3 deletions
|
@ -68,10 +68,11 @@ sub processURL {
|
||||||
print "obtaining list of Nix archives at `$url'...\n";
|
print "obtaining list of Nix archives at `$url'...\n";
|
||||||
$manifest = downloadFile $url;
|
$manifest = downloadFile $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
my $version = readManifest($manifest, \%narFiles, \%localPaths, \%patches);
|
||||||
|
|
||||||
if (readManifest($manifest, \%narFiles, \%localPaths, \%patches) < 3) {
|
die "`$url' is not a manifest or it is too old (i.e., for Nix <= 0.7)\n" if $version < 3;
|
||||||
die "`$url' is not manifest or it is too old (i.e., for Nix <= 0.7)\n";
|
die "manifest `$url' is too new\n" if $version >= 5;
|
||||||
}
|
|
||||||
|
|
||||||
if ($skipWrongStore) {
|
if ($skipWrongStore) {
|
||||||
foreach my $path (keys %narFiles) {
|
foreach my $path (keys %narFiles) {
|
||||||
|
|
Loading…
Reference in a new issue