mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
* Better error reporting in readmanifest.
* Use force flag in `mv' to prevent silly interactive questions (this happens with shared Nix stores).
This commit is contained in:
parent
fbc434ee4c
commit
48ebe4527e
2 changed files with 3 additions and 2 deletions
|
@ -51,7 +51,7 @@ sub processURL {
|
|||
|
||||
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";
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,8 @@ sub readManifest {
|
|||
my $patches = shift;
|
||||
my $successors = shift;
|
||||
|
||||
open MANIFEST, "<$manifest";
|
||||
open MANIFEST, "<$manifest"
|
||||
or die "cannot open `$manifest': $!";
|
||||
|
||||
my $inside = 0;
|
||||
my $type;
|
||||
|
|
Loading…
Reference in a new issue