mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 10:34:05 +00:00 
			
		
		
		
	Modify the semantics of the "force" hint
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk> Allow a package which is a candidate but invalidated by one or more dependencies to be "force"d. Based on a patch to britney by Andreas Barth <aba@debian.org>
This commit is contained in:
		
							parent
							
								
									0cf4dc85f6
								
							
						
					
					
						commit
						775cfc6f2b
					
				@ -1347,9 +1347,10 @@ class Britney:
 | 
				
			|||||||
                        "though it fixes more than it introduces, whine at debian-release)" % pkg)
 | 
					                        "though it fixes more than it introduces, whine at debian-release)" % pkg)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # check if there is a `force' hint for this package, which allows it to go in even if it is not updateable
 | 
					        # check if there is a `force' hint for this package, which allows it to go in even if it is not updateable
 | 
				
			||||||
 | 
					        if src in self.hints["force"] and self.same_source(source_u[VERSION], self.hints["force"][src][0]):
 | 
				
			||||||
 | 
					            excuse.dontinvalidate = 1
 | 
				
			||||||
        if not update_candidate and src in self.hints["force"] and \
 | 
					        if not update_candidate and src in self.hints["force"] and \
 | 
				
			||||||
           self.same_source(source_u[VERSION], self.hints["force"][src][0]):
 | 
					           self.same_source(source_u[VERSION], self.hints["force"][src][0]):
 | 
				
			||||||
            excuse.dontinvalidate = 1
 | 
					 | 
				
			||||||
            excuse.addhtml("Should ignore, but forced by %s" % (self.hints["force"][src][1]))
 | 
					            excuse.addhtml("Should ignore, but forced by %s" % (self.hints["force"][src][1]))
 | 
				
			||||||
            update_candidate = True
 | 
					            update_candidate = True
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user