aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPer Øyvind Karlsen <peroyvind@mandriva.org>2008-02-29 15:33:44 +0000
committerPer Øyvind Karlsen <peroyvind@mandriva.org>2008-02-29 15:33:44 +0000
commit2430fc71571f11e9bda9dd8a83f00a8a1a768aa4 (patch)
treedccfe9efa6db27a45f2d695df0e8a3ba9ede329b
parent72ce435bd9c375f5f833a1d6d8612ee760df4e8d (diff)
downloadperl-URPM-2430fc71571f11e9bda9dd8a83f00a8a1a768aa4.tar
perl-URPM-2430fc71571f11e9bda9dd8a83f00a8a1a768aa4.tar.gz
perl-URPM-2430fc71571f11e9bda9dd8a83f00a8a1a768aa4.tar.bz2
perl-URPM-2430fc71571f11e9bda9dd8a83f00a8a1a768aa4.tar.xz
perl-URPM-2430fc71571f11e9bda9dd8a83f00a8a1a768aa4.zip
rpm 4.5 and newer uses unsigned long long ulong1 in stead of unsigned long ulong1 for rpmProblemGetLong, therefore use %lld in stead of %ld
-rw-r--r--URPM.xs9
1 files changed, 8 insertions, 1 deletions
diff --git a/URPM.xs b/URPM.xs
index c903698..d9b5823 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -769,10 +769,17 @@ return_problems(rpmps ps, int translate_message) {
sv = newSVpvf("installed@%s@%s", pkgNEVR, altNEVR); break;
case RPMPROB_DISKSPACE:
+#ifdef RPM_450
+ sv = newSVpvf("diskspace@%s@%s@%lld", pkgNEVR, s, rpmProblemGetLong(p)); break;
+#else
sv = newSVpvf("diskspace@%s@%s@%ld", pkgNEVR, s, rpmProblemGetLong(p)); break;
-
+#endif
case RPMPROB_DISKNODES:
+#ifdef RPM_450
+ sv = newSVpvf("disknodes@%s@%s@%lld", pkgNEVR, s, rpmProblemGetLong(p)); break;
+#else
sv = newSVpvf("disknodes@%s@%s@%ld", pkgNEVR, s, rpmProblemGetLong(p)); break;
+#endif
case RPMPROB_REQUIRES:
sv = newSVpvf("requires@%s@%s", pkgNEVR, altNEVR+2); break;