From 3559336247632551ca960658b8866b4eac61d21e Mon Sep 17 00:00:00 2001 From: Bo Maryniuk Date: Thu, 13 Jul 2023 13:46:01 +0200 Subject: [PATCH] Detect target package by its full name, instead of assuming its origin is identical to the source package type --- osc/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/build.py b/osc/build.py index a69512a3..bc6528b7 100644 --- a/osc/build.py +++ b/osc/build.py @@ -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)