1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

Show the md5s that are failing to validate

This commit is contained in:
William Brown 2022-05-06 12:27:43 +10:00
parent d5e04f806f
commit 1ba375d81f

View File

@ -263,8 +263,8 @@ class Fetcher:
# delete it and mark it for downloading from the API # delete it and mark it for downloading from the API
hdrmd5 = packagequery.PackageQuery.queryhdrmd5(i.fullfilename) hdrmd5 = packagequery.PackageQuery.queryhdrmd5(i.fullfilename)
if not hdrmd5 or hdrmd5 != i.hdrmd5: if not hdrmd5 or hdrmd5 != i.hdrmd5:
print('%s/%s: attempting download from api, since the hdrmd5 did not match' print('%s/%s: attempting download from api, since the hdrmd5 did not match - %s != %s'
% (i.project, i.name)) % (i.project, i.name, hdrmd5, i.hdrmd5))
os.unlink(i.fullfilename) os.unlink(i.fullfilename)
self.__add_cpio(i) self.__add_cpio(i)