Changed in 82dafa39.
[Current source of
`archsuffixTag()`](https://github.com/rpm-software-management/rpm/blob/bb4aaaa2e8e4bdfc02f9d98ab2982074051c4eb2/lib/tagexts.c#L738-L764):
```c
static int archsuffixTag(Header h, rpmtd td, headerGetFlags hgflags)
{
const char *a = NULL;
char * val;
if (headerIsSource(h)) {
if (headerIsEntry(h, RPMTAG_NOSOURCE) ||
headerIsEntry(h, RPMTAG_NOPATCH))
a = "nosrc";
else
a = "src";
} else {
a = headerGetString(h, RPMTAG_ARCH);
}
if (a)
val = rstrscat(NULL, ".", a, NULL);
else
val = xstrdup("");
td->type = RPM_STRING_TYPE;
td->data = val;
td->count = 1;
td->flags = RPMTD_ALLOCED;
return 1;
}
```
So, I'm guessing that when `rpmspec` calls this, the `Header` they're passing
in thinks it's a source RPM header which makes a sort of sense
programmatically, but it doesn't make sense to me for `--rpms`, and
`--builtrpms` (which are synonymous with the default query).
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/2819#issuecomment-1858704501
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/issues/2819/1858704...@github.com>
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint