* Allow certain operations to succeed even if we don't have write
permission to the Nix store or database. E.g., `nix-env -qa' will work, but `nix-env -qas' won't (the latter needs DB access). The option `--readonly-mode' forces this mode; otherwise, it's only activated when the database cannot be opened.
This commit is contained in:
		
							parent
							
								
									3ade3e7721
								
							
						
					
					
						commit
						f4d44a0026
					
				
					 9 changed files with 58 additions and 16 deletions
				
			
		|  | @ -160,6 +160,8 @@ static void initAndRun(int argc, char * * argv) | |||
|                 throw UsageError(format("`--max-jobs' requires a non-negative integer")); | ||||
|             maxBuildJobs = n; | ||||
|         } | ||||
|         else if (arg == "--readonly-mode") | ||||
|             readOnlyMode = true; | ||||
|         else remaining.push_back(arg); | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue