mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 02:24:24 +00:00 
			
		
		
		
	Make a variable name more descriptive (first -. circular-first)
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk>
This commit is contained in:
		
							parent
							
								
									ad527d48a1
								
							
						
					
					
						commit
						c0e15035d1
					
				@ -2793,13 +2793,13 @@ class Britney:
 | 
			
		||||
        # consider only excuses which are valid candidates
 | 
			
		||||
        excuses = dict([(x.name, x) for x in self.excuses if x.name in self.upgrade_me])
 | 
			
		||||
 | 
			
		||||
        def find_related(e, hint, first=False):
 | 
			
		||||
        def find_related(e, hint, circular_first=False):
 | 
			
		||||
            if e not in excuses:
 | 
			
		||||
                return False
 | 
			
		||||
            excuse = excuses[e]
 | 
			
		||||
            if e in self.sources['testing'] and self.sources['testing'][e][VERSION] == excuse.ver[1]:
 | 
			
		||||
                return True
 | 
			
		||||
            if not first:
 | 
			
		||||
            if not circular_first:
 | 
			
		||||
                hint[e] = excuse.ver[1]
 | 
			
		||||
            if len(excuse.deps) == 0:
 | 
			
		||||
                return hint
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user