fix return md5

This commit is contained in:
Dimitris Zlatanidis 2015-02-04 02:54:28 +02:00
parent 05199e9505
commit 46ec3e8300

View file

@ -44,6 +44,6 @@ def pkg_checksum(binary, repo):
CHECKSUMS_md5 = f.read()
f.close()
for line in CHECKSUMS_md5.splitlines():
if line.endswith(binary):
if line.split('/')[-1] == binary:
md5 = line.split()[0]
return md5