aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-03-18 22:05:49 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-10-13 11:31:28 +0200
commit5aa38aea4d7f9c1ff88c3c1a9c9ccf297d5caac0 (patch)
tree3d38b1d0bfa2291df021a1fa568f5b81a8b0866c /URPM.xs
parent243a6be786898e35c68da8b534fa5e1e755da868 (diff)
downloadperl-URPM-5aa38aea4d7f9c1ff88c3c1a9c9ccf297d5caac0.tar
perl-URPM-5aa38aea4d7f9c1ff88c3c1a9c9ccf297d5caac0.tar.gz
perl-URPM-5aa38aea4d7f9c1ff88c3c1a9c9ccf297d5caac0.tar.bz2
perl-URPM-5aa38aea4d7f9c1ff88c3c1a9c9ccf297d5caac0.tar.xz
perl-URPM-5aa38aea4d7f9c1ff88c3c1a9c9ccf297d5caac0.zip
simplify: do not reinvent get_arch()
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: