From e7739438580e30fc9eb20ff446a7b9dc6c478015 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 15 Jun 2012 16:38:30 +0000 Subject: (Header_fullname) get_arch() already handle SRPMs git-svn-id: svn+ssh://haiku.zarb.org/home/projects/rpm4/svn/trunk@208 971eb68f-4bfb-0310-8326-d2484c010a4c --- RPM4/src/RPM4.xs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs index 5e20da6..2a1f78b 100644 --- a/RPM4/src/RPM4.xs +++ b/RPM4/src/RPM4.xs @@ -1219,7 +1219,7 @@ Header_fullname(h) name, version, release, - headerIsEntry(h, RPMTAG_SOURCERPM) ? arch : "src" + arch )); } } else if (gimme == G_ARRAY) { @@ -1227,13 +1227,7 @@ Header_fullname(h) mPUSHs(newSVpv(name, 0)); mPUSHs(newSVpv(version, 0)); mPUSHs(newSVpv(release, 0)); - if (ix != 1) { - if (!headerIsEntry(h, RPMTAG_SOURCERPM)) { - mPUSHs(newSVpv("src", 0)); - } else { - mPUSHs(newSVpv(arch, 0)); - } - } + mPUSHs(newSVpv(arch, 0)); } } -- cgit v1.2.1