mirror of
				https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
				synced 2025-11-04 10:34:05 +00:00 
			
		
		
		
	Avoid lying about orig-nuninst counters in force-hint
Signed-off-by: Niels Thykier <niels@thykier.net>
This commit is contained in:
		
							parent
							
								
									6d81e0b1fd
								
							
						
					
					
						commit
						9e6fcc0ed3
					
				
							
								
								
									
										13
									
								
								britney.py
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								britney.py
									
									
									
									
									
								
							@ -2322,9 +2322,7 @@ class Britney(object):
 | 
			
		||||
                upgrade_me.remove(x)
 | 
			
		||||
        
 | 
			
		||||
        self.output_write("start: %s\n" % self.eval_nuninst(nuninst_start))
 | 
			
		||||
        if not force:
 | 
			
		||||
            self.output_write("orig: %s\n" % self.eval_nuninst(nuninst_start))
 | 
			
		||||
 | 
			
		||||
        self.output_write("orig: %s\n" % self.eval_nuninst(nuninst_start))
 | 
			
		||||
 | 
			
		||||
        if init:
 | 
			
		||||
            # init => a hint (e.g. "easy") - so do the hint run
 | 
			
		||||
@ -2349,9 +2347,7 @@ class Britney(object):
 | 
			
		||||
 | 
			
		||||
        if not recurse:
 | 
			
		||||
            # easy or force-hint
 | 
			
		||||
            if force:
 | 
			
		||||
                self.output_write("orig: %s\n" %  nuninst_end_str)
 | 
			
		||||
            self.output_write("easy: %s\n" %  nuninst_end_str)
 | 
			
		||||
            self.output_write("easy: %s\n" % nuninst_end_str)
 | 
			
		||||
 | 
			
		||||
            if not force:
 | 
			
		||||
                self.output_write(eval_uninst(self.options.architectures,
 | 
			
		||||
@ -2377,10 +2373,7 @@ class Britney(object):
 | 
			
		||||
            # Result accepted either by force or by being better than the original result.
 | 
			
		||||
            self.output_write("final: %s\n" % ",".join(sorted( x.uvname for x in selected )))
 | 
			
		||||
            self.output_write("start: %s\n" % self.eval_nuninst(nuninst_start))
 | 
			
		||||
            if not force:
 | 
			
		||||
                self.output_write(" orig: %s\n" % self.eval_nuninst(self.nuninst_orig))
 | 
			
		||||
            else:
 | 
			
		||||
                self.output_write(" orig: %s\n" % nuninst_end_str)
 | 
			
		||||
            self.output_write(" orig: %s\n" % self.eval_nuninst(self.nuninst_orig))
 | 
			
		||||
            self.output_write("  end: %s\n" % nuninst_end_str)
 | 
			
		||||
            if force:
 | 
			
		||||
                self.output_write("force breaks:\n")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user