mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 02:24:24 +00:00 
			
		
		
		
	Suite: add is_cruft function
This commit is contained in:
		
							parent
							
								
									eba71cef1a
								
							
						
					
					
						commit
						563556de95
					
				@ -102,6 +102,15 @@ class Suite(object):
 | 
			
		||||
        """
 | 
			
		||||
        yield from (x for x in pkgs if x in self.all_binaries_in_suite)
 | 
			
		||||
 | 
			
		||||
    def is_cruft(self, pkg):
 | 
			
		||||
        """Check if the package is cruft in the suite
 | 
			
		||||
 | 
			
		||||
        :param pkg: BinaryPackage to check
 | 
			
		||||
                    Note that this package is assumed to be in the suite
 | 
			
		||||
        """
 | 
			
		||||
        newest_src_in_suite = self.sources[pkg.source]
 | 
			
		||||
        return pkg.source_version != newest_src_in_suite.version
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class TargetSuite(Suite):
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user