* Operation `--delete-generations' to delete generations of a
profile. Arguments are either generation number, or `old' to delete all non-current generations. Typical use: $ nix-env --delete-generations old $ nix-collect-garbage * istringstream -> string2Int.
This commit is contained in:
		
							parent
							
								
									c16be6ac92
								
							
						
					
					
						commit
						dcc433de47
					
				
					 8 changed files with 100 additions and 33 deletions
				
			
		|  | @ -155,10 +155,8 @@ static void initAndRun(int argc, char * * argv) | |||
|         else if (arg == "--max-jobs" || arg == "-j") { | ||||
|             ++i; | ||||
|             if (i == args.end()) throw UsageError("`--max-jobs' requires an argument"); | ||||
|             istringstream str(*i); | ||||
|             int n; | ||||
|             str >> n; | ||||
|             if (!str || !str.eof() || n < 0) | ||||
|             if (!string2Int(*i, n) || n < 0) | ||||
|                 throw UsageError(format("`--max-jobs' requires a non-negative integer")); | ||||
|             maxBuildJobs = n; | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue