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:
parent
b5d337d037
commit
4d7dd3d46c
@ -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)
|
||||
|
@ -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:'):
|
||||
|
Loading…
Reference in New Issue
Block a user