Skip to content
Snippets Groups Projects
Commit 48ebe452 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

* Better error reporting in readmanifest.

* Use force flag in `mv' to prevent silly interactive questions (this
  happens with shared Nix stores).
parent fbc434ee
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ sub processURL { ...@@ -51,7 +51,7 @@ sub processURL {
my $finalPath = "$stateDir/manifests/$baseName-$hash.nixmanifest"; my $finalPath = "$stateDir/manifests/$baseName-$hash.nixmanifest";
system("mv '$manifest' '$finalPath'") == 0 system("mv -f '$manifest' '$finalPath'") == 0
or die "cannot move `$manifest' to `$finalPath"; or die "cannot move `$manifest' to `$finalPath";
} }
......
...@@ -35,7 +35,8 @@ sub readManifest { ...@@ -35,7 +35,8 @@ sub readManifest {
my $patches = shift; my $patches = shift;
my $successors = shift; my $successors = shift;
open MANIFEST, "<$manifest"; open MANIFEST, "<$manifest"
or die "cannot open `$manifest': $!";
my $inside = 0; my $inside = 0;
my $type; my $type;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment