diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-08-09 14:58:06 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-08-09 14:58:06 +0000 |
commit | 5681246da10811a2d866671e65ca5b13eb8e9e74 (patch) | |
tree | 0cd784339e742f130a20a9b5cea8a78a9b234195 | |
parent | 33b8b51022eb2ee76dd6089d18fca2117b310f88 (diff) | |
download | perl-URPM-5681246da10811a2d866671e65ca5b13eb8e9e74.tar perl-URPM-5681246da10811a2d866671e65ca5b13eb8e9e74.tar.gz perl-URPM-5681246da10811a2d866671e65ca5b13eb8e9e74.tar.bz2 perl-URPM-5681246da10811a2d866671e65ca5b13eb8e9e74.tar.xz perl-URPM-5681246da10811a2d866671e65ca5b13eb8e9e74.zip |
compilation fixes on rpm < 4.4.8
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | URPM.xs | 12 |
2 files changed, 12 insertions, 2 deletions
@@ -1,3 +1,5 @@ +- compilation fixes on rpm < 4.4.8 + Version 1.69 - 9 August 2007, by Pascal "Pixel" Rigaux - "suggests" are no more handled as "requires" @@ -3796,7 +3796,7 @@ Urpm_platformscore(platform) RETVAL=rpmPlatformScore(platform, NULL, 0); #else croak("platformscore() is availlable only since rpm 4.4.8"); - RETVAL=0 + RETVAL=0; #endif OUTPUT: RETVAL @@ -3838,7 +3838,15 @@ Urpm_spec2srcheader(specfile) #define SPEC_FORCE 1 /* check what it does */ #define SPEC_VERIFY 0 - if (!parseSpec(ts, specfile, "/", 0, NULL, NULL, SPEC_ANYARCH, SPEC_FORCE, SPEC_VERIFY)) { + if (!parseSpec(ts, specfile, "/" +#ifndef RPM_448 + , NULL +#endif + , 0, NULL, NULL, SPEC_ANYARCH, SPEC_FORCE +#ifdef RPM_448 + , SPEC_VERIFY +#endif + )) { const char *zero = ""; SV *sv_pkg; spec = rpmtsSetSpec(ts, NULL); |