From b1882c3ef75afdaa7b0926cd146aa2857ba0d40a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 11 Apr 2011 08:06:14 +0000 Subject: * Create $manifestDir if it doesn't exist. --- scripts/NixManifest.pm.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts') 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. -- cgit v1.2.3