mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 10:34:05 +00:00 
			
		
		
		
	Don't allow smooth update if section not in s-u config
Signed-off-by: Ivo De Decker <ivodd@debian.org>
This commit is contained in:
		
							parent
							
								
									301298e8c4
								
							
						
					
					
						commit
						8d5805b8de
					
				@ -726,7 +726,6 @@ def find_smooth_updateable_binaries(binaries_to_check,
 | 
			
		||||
    for pkg_id in binaries_to_check:
 | 
			
		||||
        binary, _, parch = pkg_id
 | 
			
		||||
 | 
			
		||||
        cruft = False
 | 
			
		||||
        cruftbins = set()
 | 
			
		||||
 | 
			
		||||
        # Not a candidate for smooth up date (newer non-cruft version in unstable)
 | 
			
		||||
@ -734,10 +733,9 @@ def find_smooth_updateable_binaries(binaries_to_check,
 | 
			
		||||
            if binaries_s[parch][binary].source_version == source_data.version:
 | 
			
		||||
                continue
 | 
			
		||||
            cruftbins.add(binaries_s[parch][binary].pkg_id)
 | 
			
		||||
            cruft = True
 | 
			
		||||
 | 
			
		||||
        # Maybe a candidate (cruft or removed binary): check if config allows us to smooth update it.
 | 
			
		||||
        if cruft or 'ALL' in smooth_updates or binaries_t[parch][binary].section in smooth_updates:
 | 
			
		||||
        if 'ALL' in smooth_updates or binaries_t[parch][binary].section in smooth_updates:
 | 
			
		||||
            # if the package has reverse-dependencies which are
 | 
			
		||||
            # built from other sources, it's a valid candidate for
 | 
			
		||||
            # a smooth update.  if not, it may still be a valid
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user