Fixed reduntant bug
							parent
							
								
									5769b00c17
								
							
						
					
					
						commit
						65ffa38edc
					
				|  | @ -25,7 +25,8 @@ class Spec: | |||
|         raise NotImplementedError() | ||||
| 
 | ||||
|     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: | ||||
|             for path in tarballs[self.limit - 1:]: | ||||
|  |  | |||
		Reference in New Issue