* Create $manifestDir if it doesn't exist.
This commit is contained in:
parent
5591fcc529
commit
b1882c3ef7
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,7 @@ use strict;
|
|||
use DBI;
|
||||
use Cwd;
|
||||
use File::stat;
|
||||
use File::Path;
|
||||
|
||||
|
||||
sub addPatch {
|
||||
|
@ -198,6 +199,8 @@ sub writeManifest {
|
|||
sub updateManifestDB {
|
||||
my $manifestDir = ($ENV{"NIX_MANIFESTS_DIR"} or "@localstatedir@/nix/manifests");
|
||||
|
||||
mkpath($manifestDir);
|
||||
|
||||
my $dbPath = "$manifestDir/cache.sqlite";
|
||||
|
||||
# Open/create the database.
|
||||
|
|
Loading…
Reference in a new issue