aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2008-03-19 04:34:22 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2008-03-19 04:34:22 +0000
commit7f4b68a5c85a32923582979c9461e98c135ce3fb (patch)
tree7adc9031e10fbf0862553eb68648972588d18d00 /URPM.xs
parentb809ea4a5d335867c71511c98c20d6f8114f9fab (diff)
downloadperl-URPM-7f4b68a5c85a32923582979c9461e98c135ce3fb.tar
perl-URPM-7f4b68a5c85a32923582979c9461e98c135ce3fb.tar.gz
perl-URPM-7f4b68a5c85a32923582979c9461e98c135ce3fb.tar.bz2
perl-URPM-7f4b68a5c85a32923582979c9461e98c135ce3fb.tar.xz
perl-URPM-7f4b68a5c85a32923582979c9461e98c135ce3fb.zip
make URPM more portable by using standard %{_target_vendor} & %{_target_cpu} macros in stead of Mandriva specific %{_real_vendor} & (now dead) %{_real_arch}
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