Respect build-use-substitutes
This commit is contained in:
		
							parent
							
								
									812c0dfbe2
								
							
						
					
					
						commit
						064816ab98
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -780,6 +780,7 @@ Path LocalStore::queryPathFromHashPart(const string & hashPart)
 | 
			
		|||
 | 
			
		||||
PathSet LocalStore::querySubstitutablePaths(const PathSet & paths)
 | 
			
		||||
{
 | 
			
		||||
    if (!settings.useSubstitutes) return PathSet();
 | 
			
		||||
    PathSet res;
 | 
			
		||||
    for (auto & sub : getDefaultSubstituters()) {
 | 
			
		||||
        if (sub->storeDir != storeDir) continue;
 | 
			
		||||
| 
						 | 
				
			
			@ -799,6 +800,7 @@ PathSet LocalStore::querySubstitutablePaths(const PathSet & paths)
 | 
			
		|||
void LocalStore::querySubstitutablePathInfos(const PathSet & paths,
 | 
			
		||||
    SubstitutablePathInfos & infos)
 | 
			
		||||
{
 | 
			
		||||
    if (!settings.useSubstitutes) return;
 | 
			
		||||
    for (auto & sub : getDefaultSubstituters()) {
 | 
			
		||||
        if (sub->storeDir != storeDir) continue;
 | 
			
		||||
        for (auto & path : paths) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue