Don't start copy-from-other-stores if $NIX_OTHER_STORES is unset
Slight optimisation.
This commit is contained in:
		
							parent
							
								
									91ef4d9a81
								
							
						
					
					
						commit
						f581ce0b0c
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -61,6 +61,7 @@ void Settings::processEnvironment()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    string subs = getEnv("NIX_SUBSTITUTERS", "default");
 | 
					    string subs = getEnv("NIX_SUBSTITUTERS", "default");
 | 
				
			||||||
    if (subs == "default") {
 | 
					    if (subs == "default") {
 | 
				
			||||||
 | 
					        if (getEnv("NIX_OTHER_STORES") != "")
 | 
				
			||||||
            substituters.push_back(nixLibexecDir + "/nix/substituters/copy-from-other-stores.pl");
 | 
					            substituters.push_back(nixLibexecDir + "/nix/substituters/copy-from-other-stores.pl");
 | 
				
			||||||
        substituters.push_back(nixLibexecDir + "/nix/substituters/download-using-manifests.pl");
 | 
					        substituters.push_back(nixLibexecDir + "/nix/substituters/download-using-manifests.pl");
 | 
				
			||||||
        substituters.push_back(nixLibexecDir + "/nix/substituters/download-from-binary-cache.pl");
 | 
					        substituters.push_back(nixLibexecDir + "/nix/substituters/download-from-binary-cache.pl");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue