SOURCES: poldek-rpm-4.4.9.patch - try game with rpmPlatformScore

arekm arekm at pld-linux.org
Mon Jun 4 12:27:38 CEST 2007


Author: arekm                        Date: Mon Jun  4 10:27:37 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- try game with rpmPlatformScore

---- Files affected:
SOURCES:
   poldek-rpm-4.4.9.patch (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SOURCES/poldek-rpm-4.4.9.patch
diff -u SOURCES/poldek-rpm-4.4.9.patch:1.2 SOURCES/poldek-rpm-4.4.9.patch:1.3
--- SOURCES/poldek-rpm-4.4.9.patch:1.2	Sun May 27 11:50:18 2007
+++ SOURCES/poldek-rpm-4.4.9.patch	Mon Jun  4 12:27:32 2007
@@ -19,14 +19,42 @@
  #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;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/poldek-rpm-4.4.9.patch?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list