aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs2
1 files changed, 1 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index 96cddbb..41a6b8c 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -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: