[Rpm-maint] [rpm-software-management/rpm] Print binaries of non-matching arch in the warning/error message (PR #4060)
Michal Domonkos
notifications at github.com
Fri Dec 5 13:41:39 UTC 2025
@dmnks commented on this pull request.
> @@ -1640,6 +1640,60 @@ rpmRC rpmfcApply(rpmfc fc)
return rc;
}
+static string rpmfcPrettyFType(rpmfc fc, unsigned ix)
+{
+ string ftype = fc->ftype[ix];
+ size_t len = ftype.find(' ', 10);
+ return ftype.substr(0, len);
+}
+
+static rpmRC rpmfcCheckPackageColor(rpmfc fc)
+{
+ Package pkg = fc->pkg;
+ const char *a = headerGetString(pkg->header, RPMTAG_ARCH);
+ char *nvr;
+ string msg, type, bins;
+ unsigned ix;
+ int color;
Yep, those reused indexes and whatnot can be a headache indeed :laughing:
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4060#discussion_r2592735064
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/4060/review/3544818394 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20251205/05ee50a1/attachment.htm>
More information about the Rpm-maint
mailing list