]> git.pld-linux.org Git - packages/poldek.git/commitdiff
- try game with rpmPlatformScore
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 4 Jun 2007 10:27:32 +0000 (10:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    poldek-rpm-4.4.9.patch -> 1.3

poldek-rpm-4.4.9.patch

index 4fa938ae3334c5cbe0d53d4ee6d7d0ad4ee2da79..1ceecb800b765f1f88ef588b08e5e7790cf447e7 100644 (file)
  #ifdef HAVE_RPM_4_0_4
  # include <rpm/rpmcli.h>
  #endif
-diff -urN poldek-0.20.1-cvs20070108.22.org/pm/rpm/misc.c poldek-0.20.1-cvs20070108.22/pm/rpm/misc.c
---- poldek-0.20.1-cvs20070108.22.org/pm/rpm/misc.c     2007-01-08 22:14:18.000000000 +0100
-+++ poldek-0.20.1-cvs20070108.22/pm/rpm/misc.c 2007-05-27 11:49:22.088655311 +0200
-@@ -183,7 +183,6 @@
-             break;
-     }
--    n_assert(rpmtag);
-     return rpmMachineScore(rpmtag, val);
+--- poldek-0.20.1-cvs20070108.22/configure.in  2007-05-27 20:05:24.702600301 +0200
++++ poldek-0.20.1-cvs20070108.22-new/configure.in      2007-05-27 20:05:03.038233602 +0200
+@@ -302,6 +302,7 @@
+ dnl rpm 4.4.7
+ dnl  - killed rpmMachineScore and rpmGetVar
+ AC_CHECK_FUNCS(rpmMachineScore)
++AC_CHECK_FUNCS(rpmPlatformScore)
+ AC_CHECK_FUNCS(rpmGetVar)
+ AC_CHECK_FUNCS(rpmioAccess)
+ dnl  - new _rpmvercmp()
+--- poldek-0.20.1-cvs20070108.22/pm/rpm/misc.c 2007-05-27 20:05:24.705933794 +0200
++++ poldek-0.20.1-cvs20070108.22-new/pm/rpm/misc.c     2007-05-27 20:04:43.153951811 +0200
+@@ -182,8 +182,11 @@
+     return caps;
  }
- #else  /* !HAVE_RPMMACHINESCORE; killed rpmMachineScore() (since 4.4.7) */
+-
+-#ifdef HAVE_RPMMACHINESCORE
++#ifdef HAVE_RPMPLATOFMSCORE
++static int machine_score(int tag, const char *val) {
++    return rpmPlatformScore(val, platpat, nplatpat);
++}
++#elif defined(HAVE_RPMMACHINESCORE)
+ static int machine_score(int tag, const char *val)
+ {
+     int rpmtag = 0, rc;
+@@ -249,8 +252,10 @@
+     
+     if (arch == NULL)
+         return 0;
+-    
+-#ifdef HAVE_RPMMACHINESCORE    
++
++#ifdef HAVE_RPMPLATOFMSCORE
++    rc = rpmPlatformScore(val, platpat, nplatpat);
++#elif defined(HAVE_RPMMACHINESCORE)
+     rc = rpmMachineScore(RPM_MACHTABLE_INSTARCH, arch);
+ #else
+     rc = 9;
This page took 0.033974 seconds and 4 git commands to generate.