From 0216c16c3de9d6a03df30d73e2f79ac0d8783e64 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 31 Jan 2019 14:08:51 +0530 Subject: [PATCH] only parse new changelog entries --- oml/library.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oml/library.py b/oml/library.py index c80fc4d..11f9103 100644 --- a/oml/library.py +++ b/oml/library.py @@ -56,6 +56,9 @@ class Peer(object): for line in fd: if line: try: + revision = int(line.split(',', 1)[0][1:]) + if revision <= self.info.get('revision', -1): + continue data = json.loads(line) except: logger.debug('failed to parse line: %s', line)