Actually only filter out PRODID key

It might happen that we filter out a SUMMARY line or similar which
coincidentally contains "PRODID"
This commit is contained in:
Markus Unterwaditzer 2014-05-19 17:00:58 +02:00
parent f9cd26e644
commit 5d727c26e5

View file

@ -22,8 +22,8 @@ def hash_item(text):
hashable = u'\r\n'.join(line.strip() for line in lines
if line.strip() and
u'PRODID' not in line and
u'VERSION' not in line)
not line.startswith(u'PRODID:') and
not line.startswith(u'VERSION:'))
return hashlib.sha256(hashable.encode('utf-8')).hexdigest()