nix-daemon: Fix queryPathInfo() backward compatibility
This commit is contained in:
		
							parent
							
								
									4e17e7a4da
								
							
						
					
					
						commit
						b6c768fb6a
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		|  | @ -518,14 +518,18 @@ static void performOp(ref<LocalStore> store, bool trusted, unsigned int clientVe | ||||||
|         } |         } | ||||||
|         stopWork(); |         stopWork(); | ||||||
|         if (info) { |         if (info) { | ||||||
|             to << 1 << info->deriver << printHash(info->narHash) << info->references |             if (GET_PROTOCOL_MINOR(clientVersion) >= 17) | ||||||
|  |                 to << 1; | ||||||
|  |             to << info->deriver << printHash(info->narHash) << info->references | ||||||
|                << info->registrationTime << info->narSize; |                << info->registrationTime << info->narSize; | ||||||
|             if (GET_PROTOCOL_MINOR(clientVersion) >= 16) { |             if (GET_PROTOCOL_MINOR(clientVersion) >= 16) { | ||||||
|                 to << info->ultimate |                 to << info->ultimate | ||||||
|                    << info->sigs; |                    << info->sigs; | ||||||
|             } |             } | ||||||
|         } else |         } else { | ||||||
|  |             assert(GET_PROTOCOL_MINOR(clientVersion) >= 17); | ||||||
|             to << 0; |             to << 0; | ||||||
|  |         } | ||||||
|         break; |         break; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue