aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs10
1 files changed, 5 insertions, 5 deletions
diff --git a/URPM.xs b/URPM.xs
index 2e83d04..4db4c7d 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1528,7 +1528,7 @@ Pkg_is_arch_compat__XS(pkg)
get_fullname_parts(pkg, NULL, NULL, NULL, &arch, &eos);
*eos = 0;
#if RPM_VERSION_CODE >= RPM_VERSION(4,4,8)
- platform = rpmExpand(arch, "-%{_real_vendor}-%{_target_os}%{?_gnu}", NULL);
+ platform = rpmExpand(arch, "-%{_target_vendor}-%{_target_os}%{?_gnu}", NULL);
RETVAL = rpmPlatformScore(platform, NULL, 0);
_free(platform);
#else
@@ -1538,7 +1538,7 @@ Pkg_is_arch_compat__XS(pkg)
} else if (pkg->h && headerIsEntry(pkg->h, RPMTAG_SOURCERPM)) {
char *arch = get_name(pkg->h, RPMTAG_ARCH);
#if RPM_VERSION_CODE >= RPM_VERSION(4,4,8)
- platform = rpmExpand(arch, "-%{_real_vendor}-%{_target_os}%{?_gnu}", NULL);
+ platform = rpmExpand(arch, "-%{_target_vendor}-%{_target_os}%{?_gnu}", NULL);
RETVAL = rpmPlatformScore(platform, NULL, 0);
_free(platform);
#else
@@ -1571,7 +1571,7 @@ Pkg_is_platform_compat(pkg)
get_fullname_parts(pkg, NULL, NULL, NULL, &arch, &eos);
*eos = 0;
- platform = rpmExpand(arch, "-%{_real_vendor}-", eos, "%{?_gnu}", NULL);
+ platform = rpmExpand(arch, "-%{_target_vendor}-", eos, "%{?_gnu}", NULL);
RETVAL = rpmPlatformScore(platform, NULL, 0);
*eos = '@';
_free(platform);
@@ -3754,7 +3754,7 @@ Urpm_archscore(arch)
CODE:
read_config_files(0);
#if RPM_VERSION_CODE >= RPM_VERSION(4,4,8)
- platform = rpmExpand(arch, "-%{_real_vendor}-%{_target_os}%{?_gnu}", NULL);
+ platform = rpmExpand(arch, "-%{_target_vendor}-%{_target_os}%{?_gnu}", NULL);
RETVAL=rpmPlatformScore(platform, NULL, 0);
_free(platform);
#else
@@ -3773,7 +3773,7 @@ Urpm_osscore(os)
CODE:
read_config_files(0);
#if RPM_VERSION_CODE >= RPM_VERSION(4,4,8)
- platform = rpmExpand("%{_real_arch}-%{_real_vendor}-", os, "%{?_gnu}", NULL);
+ platform = rpmExpand("%{_target_cpu}-%{_target_vendor}-", os, "%{?_gnu}", NULL);
RETVAL=rpmPlatformScore(platform, NULL, 0);
_free(platform);
#else