Fixed reduntant bug
							parent
							
								
									5769b00c17
								
							
						
					
					
						commit
						65ffa38edc
					
				| 
						 | 
					@ -25,7 +25,8 @@ class Spec:
 | 
				
			||||||
        raise NotImplementedError()
 | 
					        raise NotImplementedError()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def remove_redundant(self):
 | 
					    def remove_redundant(self):
 | 
				
			||||||
        tarballs = self.destination.glob('*.tar.gz')
 | 
					        tarballs = sorted(self.destination.glob('*.tar.gz'),
 | 
				
			||||||
 | 
					                          key=os.path.getmtime, reverse=True)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if len(tarballs) >= self.limit:
 | 
					        if len(tarballs) >= self.limit:
 | 
				
			||||||
            for path in tarballs[self.limit - 1:]:
 | 
					            for path in tarballs[self.limit - 1:]:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in New Issue