- resurrect availablePackages one more time.
authorjbj <devnull@localhost>
Fri, 15 Nov 2002 21:10:32 +0000 (21:10 +0000)
committerjbj <devnull@localhost>
Fri, 15 Nov 2002 21:10:32 +0000 (21:10 +0000)
CVS patchset: 5871
CVS date: 2002/11/15 21:10:32

CHANGES
elfutils/po/elfutils.pot
python/rpmts-py.c
rpm.spec.in

diff --git a/CHANGES b/CHANGES
index 0ec0b6a5176fd20ad21e9aa2d604a3d2cd2aae6c..bd6da7aab6e13ff1eb201ead5417720096470ad0 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -23,6 +23,7 @@
        - update to elfutils-0.56.
        - have debug sub-subpackage use external, not internal, elfutils.
        - apply patches 1-6 to db-4.1.24.
+       - resurrect availablePackages one more time.
 
 4.0.4 -> 4.1:
        - loosely wire beecrypt library into rpm.
index bbe30901ea3cff543de1eb6c399ee4ca82cb6ab9..93be5aff43eb08793297ceec03db045c74d98743 100644 (file)
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2002-11-15 13:34-0500\n"
+"POT-Creation-Date: 2002-11-15 16:10-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 6600c17b92c5749cb4f35234c6c06c086d4c36d1..2db656734d5d4bfc7761e5862be7f264f4a22ec0 100644 (file)
@@ -221,7 +221,7 @@ rpmts_AddInstall(rpmtsObject * s, PyObject * args)
     }
 
 if (_rpmts_debug < 0 || (_rpmts_debug > 0 && *how != 'a'))
-fprintf(stderr, "*** rpmts_AddInstall(%p) ts %p\n", s, s->ts);
+fprintf(stderr, "*** rpmts_AddInstall(%p,%p,%p,%s) ts %p\n", s, h, key, how, s->ts);
 
     if (how && strcmp(how, "a") && strcmp(how, "u") && strcmp(how, "i")) {
        PyErr_SetString(PyExc_TypeError, "how argument must be \"u\", \"a\", or \"i\"");
@@ -307,10 +307,10 @@ fprintf(stderr, "*** rpmts_AddErase(%p) ts %p\n", s, s->ts);
 /** \ingroup python
  */
 static int
-rpmts_SolveCallback(rpmts ts, rpmds ds, void * data)
+rpmts_SolveCallback(rpmts ts, rpmds ds, const void * data)
        /*@*/
 {
-    struct rpmtsCallbackType_s * cbInfo = data;
+    struct rpmtsCallbackType_s * cbInfo = (struct rpmtsCallbackType_s *) data;
     PyObject * args, * result;
     int res = 1;
 
@@ -343,7 +343,7 @@ fprintf(stderr, "*** rpmts_SolveCallback(%p,%p,%p) \"%s\"\n", ts, ds, data, rpmd
 
 static long hdr_hash(hdrObject *h)
 {
-    return h;
+    return (long) h;
 }
 
 /** \ingroup python
@@ -379,12 +379,14 @@ fprintf(stderr, "*** rpmts_Check(%p) ts %p cb %p\n", s, s->ts, cbInfo.cb);
     cbInfo.pythonError = 0;
     cbInfo._save = PyEval_SaveThread();
 
+    /* XXX resurrect availablePackages one more time ... */
+    rpmalMakeIndex(&s->ts->availablePackages);
+
     xx = rpmtsCheck(s->ts);
     ps = rpmtsProblems(s->ts);
 
-    if (cbInfo.cb) {
+    if (cbInfo.cb)
        xx = rpmtsSetSolveCallback(s->ts, rpmtsSolve, NULL);
-    }
 
     PyEval_RestoreThread(cbInfo._save);
 
index f39ec7886d6d61bb4f4e089d01320d6f1991f7a5..29cff71e9046bd79fcf56855e66a0598d07b6c48 100644 (file)
@@ -16,7 +16,7 @@ Name: rpm
 %define version @VERSION@
 Version: %{version}
 %{expand: %%define rpm_version %{version}}
-Release: 0.9
+Release: 0.10
 Group: System Environment/Base
 Source: ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.0.x/rpm-%{rpm_version}.tar.gz
 Copyright: GPL
@@ -481,10 +481,11 @@ exit 0
 %{__prefix}/include/popt.h
 
 %changelog
-* Fri Nov 15 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.9
+* Fri Nov 15 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.10
 - update to elfutils-0.56.
 - have debug sub-subpackage use external, not internal, elfutils.
 - apply patches 1-6 to db-4.1.24.
+- resurrect availablePackages one more time.
 
 * Wed Nov 13 2002 Jeff Johnson <jbj@redhat.com> 4.2-0.8
 - fix: bash must have functional libtermcap.so.2.