mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 10:34:05 +00:00 
			
		
		
		
	Add implicit unblocks for t-p-u approvals
Signed-off-by: Adam D. Barratt <adam@adam-barratt.org.uk> t-p-u approval previously required both an "unblock" and an "approve" hint if the package was blocked; the "approve" should be sufficient and this is the simplest method of achieving that. There are some cases where this does not quite do the right thing (e.g. for a package which has both a t-p-u "approve" hint and an "unblock" hint for the package in unstable) but it is preferable to requiring t-p-u hints to be added in pairs always.
This commit is contained in:
		
							parent
							
								
									ae7381cefb
								
							
						
					
					
						commit
						0c948a03f8
					
				@ -802,6 +802,10 @@ class Britney:
 | 
			
		||||
        if len(hints["block"]) == 0 and len(hints["block-udeb"]) == 0:
 | 
			
		||||
            self.__log("WARNING: No block hints at all, not even udeb ones!", type="W")
 | 
			
		||||
 | 
			
		||||
        # A t-p-u approval overrides an unstable block
 | 
			
		||||
        for p in hints["approve"]:
 | 
			
		||||
            hints["unblock"][p] = hints["approve"][p]
 | 
			
		||||
 | 
			
		||||
        return hints
 | 
			
		||||
 | 
			
		||||
    def write_heidi(self, filename):
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user