mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 02:24:24 +00:00 
			
		
		
		
	Minor optimisation of force handling
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
		
							parent
							
								
									56fa65f596
								
							
						
					
					
						commit
						fd614062ae
					
				@ -1499,10 +1499,10 @@ class Britney(object):
 | 
			
		||||
        forces = self.hints.search('force', package=src, version=source_u.version)
 | 
			
		||||
        if forces:
 | 
			
		||||
            excuse.dontinvalidate = True
 | 
			
		||||
        if not excuse.is_valid and forces:
 | 
			
		||||
            excuse.addhtml("Should ignore, but forced by %s" % (forces[0].user))
 | 
			
		||||
            excuse.force()
 | 
			
		||||
            excuse.is_valid = True
 | 
			
		||||
            if not excuse.is_valid:
 | 
			
		||||
                excuse.addhtml("Should ignore, but forced by %s" % (forces[0].user))
 | 
			
		||||
                excuse.force()
 | 
			
		||||
                excuse.is_valid = True
 | 
			
		||||
 | 
			
		||||
        self.excuses[excuse.name] = excuse
 | 
			
		||||
        return excuse.is_valid
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user