* More remote operations.
* Added new operation hasSubstitutes(), which is more efficient than querySubstitutes().size() > 0.
This commit is contained in:
		
							parent
							
								
									aac547a8b3
								
							
						
					
					
						commit
						0565b5f2b3
					
				
					 12 changed files with 138 additions and 46 deletions
				
			
		|  | @ -6,6 +6,12 @@ | |||
| namespace nix { | ||||
| 
 | ||||
| 
 | ||||
| bool StoreAPI::hasSubstitutes(const Path & path) | ||||
| { | ||||
|     return !querySubstitutes(path).empty(); | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| bool isInStore(const Path & path) | ||||
| { | ||||
|     return path[0] == '/' | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue