mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 10:34:05 +00:00 
			
		
		
		
	Fix tpu out-of-date checks for sources with multiple versions in tpu
When checking whether a tpu source has built on a particular arch, we should only consider binaries produced by the latest version of the source package in tpu. Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
		
							parent
							
								
									2d360a1628
								
							
						
					
					
						commit
						4b2e5b694c
					
				@ -1374,7 +1374,9 @@ class Britney(object):
 | 
			
		||||
 | 
			
		||||
                if not src in self.sources["testing"] or \
 | 
			
		||||
                   (len([x for x in self.sources["testing"][src][BINARIES] if x.endswith("/"+arch) and self.binaries["testing"][arch][0][x.split("/")[0]][ARCHITECTURE] != 'all' ]) == 0) or \
 | 
			
		||||
                   (len([x for x in self.sources[suite][src][BINARIES] if x.endswith("/"+arch) and self.binaries[suite][arch][0][x.split("/")[0]][ARCHITECTURE] != 'all' ]) > 0):
 | 
			
		||||
                   (len([x for x in self.binaries[suite][arch][0].values() \
 | 
			
		||||
                           if x[SOURCE] == src and x[SOURCEVER] == source_u[VERSION] and \
 | 
			
		||||
                              x[ARCHITECTURE] != 'all' ]) > 0):
 | 
			
		||||
                    continue
 | 
			
		||||
 | 
			
		||||
                if suite == 'tpu':
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user