queryMissing(): Handle partially valid derivations
This commit is contained in:
		
							parent
							
								
									08964d7328
								
							
						
					
					
						commit
						5943f41b8b
					
				
					 1 changed files with 6 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -126,11 +126,12 @@ void queryMissing(StoreAPI & store, const PathSet & targets,
 | 
			
		|||
            if (settings.useSubstitutes) {
 | 
			
		||||
                foreach (DerivationOutputs::iterator, j, drv.outputs) {
 | 
			
		||||
                    if (!wantOutput(j->first, i2.second)) continue;
 | 
			
		||||
                    if (!store.isValidPath(j->second.path) &&
 | 
			
		||||
                        infos.find(j->second.path) == infos.end())
 | 
			
		||||
                        mustBuild = true;
 | 
			
		||||
                    else
 | 
			
		||||
                        outputs.insert(j->second.path);
 | 
			
		||||
                    if (!store.isValidPath(j->second.path)) {
 | 
			
		||||
                        if (infos.find(j->second.path) == infos.end())
 | 
			
		||||
                            mustBuild = true;
 | 
			
		||||
                        else
 | 
			
		||||
                            outputs.insert(j->second.path);
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            } else
 | 
			
		||||
                mustBuild = true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue