1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 01:46:13 +01:00

fix hdmrd5 check of local cached files

Current OBS is delivering hdrmd5 in buildinfo. It turns out
that osc has already code for validating cached files, but it
invalidates all local files atm with python 3.x
This commit is contained in:
Adrian Schröter 2021-10-12 10:54:20 +02:00
parent b6f69180e2
commit b5d337d037
No known key found for this signature in database
GPG Key ID: 918D8C954C08DB67

View File

@ -87,7 +87,7 @@ class PackageQuery:
f = open(filename, 'rb')
magic = f.read(7)
f.seek(0)
if magic[:4] == '\xed\xab\xee\xdb':
if magic[:4] == b'\xed\xab\xee\xdb':
from . import rpmquery
f.close()
return rpmquery.RpmQuery.queryhdrmd5(filename)