[Rpm-maint] [rpm-software-management/rpm] Print binaries of non-matching arch in the warning/error message (PR #4060)
Panu Matilainen
notifications at github.com
Fri Dec 5 13:40:30 UTC 2025
@pmatilai commented on this pull request.
> + color = fc->fcolor[ix];
+ if (!color || color == arch_color)
+ continue;
+ type = rpmfcPrettyFType(fc, ix);
+ bins += string(4, ' ') + fc->fn[ix].substr(fc->buildRoot.size());
+ if (!type.empty())
+ bins += " (" + type + ")";
+ bins += '\n';
+ }
+
+ nvr = headerGetAsString(pkg->header, RPMTAG_NVRA);
+ rpmlog(terminate ? RPMLOG_ERR : RPMLOG_WARNING,
+ _(msg.c_str()), nvr, bins.c_str());
+ free(nvr);
+
+ return (terminate ? RPMRC_FAIL : RPMRC_OK);
There are some pre-existing cases of this in the code as well, quite likely some of from my younger self :smile:
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4060#discussion_r2592732022
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4060/review/3544814667 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20251205/29d4391f/attachment-0001.htm>
More information about the Rpm-maint
mailing list