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