diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-03-18 22:05:49 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-10-13 11:31:28 +0200 |
commit | 5aa38aea4d7f9c1ff88c3c1a9c9ccf297d5caac0 (patch) | |
tree | 3d38b1d0bfa2291df021a1fa568f5b81a8b0866c /URPM.xs | |
parent | 243a6be786898e35c68da8b534fa5e1e755da868 (diff) | |
download | perl-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.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: |