mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-03 18:14:11 +00:00 
			
		
		
		
	Merge remote-tracking branch 'tsimonq2/tsimonq2/fix-latest-run-cache'
This commit is contained in:
		
						commit
						4f4d289bc6
					
				@ -876,7 +876,11 @@ class AutopkgtestPolicy(BasePolicy):
 | 
				
			|||||||
                continue
 | 
					                continue
 | 
				
			||||||
            if run_id > latest_run_id:
 | 
					            if run_id > latest_run_id:
 | 
				
			||||||
                latest_run_id = run_id
 | 
					                latest_run_id = run_id
 | 
				
			||||||
        self.latest_run_for_package._cache[arch] = latest_run_id
 | 
					        try:
 | 
				
			||||||
 | 
					            self.latest_run_for_package._cache[src][arch] = latest_run_id
 | 
				
			||||||
 | 
					        except KeyError:
 | 
				
			||||||
 | 
					            self.latest_run_for_package._cache[src] = {arch: latest_run_id}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return latest_run_id
 | 
					        return latest_run_id
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    latest_run_for_package._cache = collections.defaultdict(dict)
 | 
					    latest_run_for_package._cache = collections.defaultdict(dict)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user