* 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 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…
	
	Add table
		Add a link
		
	
		Reference in a new issue