1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-09 22:36:14 +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 b5d337d037
commit 4d7dd3d46c
No known key found for this signature in database
GPG Key ID: 918D8C954C08DB67
2 changed files with 4 additions and 0 deletions

View File

@ -1288,6 +1288,8 @@ def main(apiurl, opts, argv):
for i in bi.deps:
if i.hdrmd5:
if not i.name.startswith('container:') and i.pacsuffix != 'rpm':
continue
from .util import packagequery
if i.name.startswith('container:'):
hdrmd5 = dgst(i.fullfilename)

View File

@ -217,6 +217,8 @@ class Fetcher:
if os.path.exists(i.fullfilename):
cached += 1
if not i.name.startswith('container:') and i.pacsuffix != 'rpm':
continue
if i.hdrmd5:
from .util import packagequery
if i.name.startswith('container:'):