1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-26 22:56:15 +01:00

Detect target package by its full name, instead of assuming its origin is identical to the source package type

This commit is contained in:
Bo Maryniuk 2023-07-13 13:46:01 +02:00
parent a461e16dec
commit 3559336247

View File

@ -1367,7 +1367,7 @@ def main(apiurl, opts, argv):
for i in bi.deps:
if i.hdrmd5:
if not i.name.startswith('container:') and i.pacsuffix != 'rpm':
if not i.name.startswith('container:') and not i.fullfilename.endswith(".rpm"):
continue
if i.name.startswith('container:'):
hdrmd5 = dgst(i.fullfilename)