only parse new changelog entries
This commit is contained in:
parent
b1a2106381
commit
0216c16c3d
1 changed files with 3 additions and 0 deletions
|
@ -56,6 +56,9 @@ class Peer(object):
|
||||||
for line in fd:
|
for line in fd:
|
||||||
if line:
|
if line:
|
||||||
try:
|
try:
|
||||||
|
revision = int(line.split(',', 1)[0][1:])
|
||||||
|
if revision <= self.info.get('revision', -1):
|
||||||
|
continue
|
||||||
data = json.loads(line)
|
data = json.loads(line)
|
||||||
except:
|
except:
|
||||||
logger.debug('failed to parse line: %s', line)
|
logger.debug('failed to parse line: %s', line)
|
||||||
|
|
Loading…
Reference in a new issue