aboutsummaryrefslogtreecommitdiff
path: root/scripts/NixManifest.pm.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/NixManifest.pm.in')
-rw-r--r--scripts/NixManifest.pm.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/NixManifest.pm.in b/scripts/NixManifest.pm.in
index 998c23ef1..4dda69710 100644
--- a/scripts/NixManifest.pm.in
+++ b/scripts/NixManifest.pm.in
@@ -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.