mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-01 02:44:11 +02: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:
@@ -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:'):
|
||||
|
Reference in New Issue
Block a user