mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 02:24:24 +00:00 
			
		
		
		
	Remove duplicate binary packages when building package lists
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
		
							parent
							
								
									775cfc6f2b
								
							
						
					
					
						commit
						fa6b95e0b3
					
				@ -457,6 +457,14 @@ class Britney:
 | 
			
		||||
        while Packages.Step():
 | 
			
		||||
            pkg = get_field('Package')
 | 
			
		||||
            version = get_field('Version')
 | 
			
		||||
 | 
			
		||||
            # There may be multiple versions of any arch:all packages
 | 
			
		||||
            # (in unstable) if some architectures have out-of-date
 | 
			
		||||
            # binaries.  We only ever consider the package with the
 | 
			
		||||
            # largest version for migration.
 | 
			
		||||
            if pkg in packages and apt_pkg.VersionCompare(packages[pkg][0], version) > 0:
 | 
			
		||||
                continue
 | 
			
		||||
 | 
			
		||||
            final_conflicts_list = []
 | 
			
		||||
            conflicts = get_field('Conflicts')
 | 
			
		||||
            if conflicts:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user