[Rpm-maint] [rpm-software-management/rpm] Add srcarch, nvrs and nevrs extension tags to return src as "architecture" for srpms (PR #1907)
Michael Schroeder
notifications at github.com
Wed Feb 2 09:01:17 UTC 2022
@mlschroe commented on this pull request.
> @@ -776,6 +777,17 @@ static int getNEVRA(Header h, rpmtd td, nevraFlags flags)
if (headerIsSource(h) && val == NULL) val = "src";
if (val) rstrscat(&res, ".", val, NULL);
}
+ if ((flags & NEVRA_SRCARCH)) {
+ if (headerIsSource(h)) {
+ if (headerIsEntry(h, RPMTAG_NOSOURCE))
You also need to check for RPMTAG_NOPATCH
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1907#pullrequestreview-870244894
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/1907/review/870244894 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220202/514dad7c/attachment-0001.html>
More information about the Rpm-maint
mailing list