From 5aa38aea4d7f9c1ff88c3c1a9c9ccf297d5caac0 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 18 Mar 2015 22:05:49 +0100 Subject: simplify: do not reinvent get_arch() --- URPM.xs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.1