diff options
-rw-r--r-- | URPM.xs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -504,7 +504,7 @@ return_list_tag(const URPM__Package pkg, rpmTag tag_name) { if (headerGet(pkg->h, tag_name, &td, HEADERGET_DEFAULT)) { int32_t count = rpmtdCount(&td); if (tag_name == RPMTAG_ARCH) - mXPUSHs(newSVpv(headerIsEntry(pkg->h, RPMTAG_SOURCERPM) ? rpmtdGetString(&td) : "src", 0)); + mXPUSHs(newSVpv(get_arch(pkg->h), 0)); else switch (rpmtdType(&td)) { case RPM_NULL_TYPE: |