diff options
author | jbj <devnull@localhost> | 2002-11-15 21:10:32 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-11-15 21:10:32 +0000 |
commit | 362d1ae73fdfe76b07fba14a28b139048c8965e6 (patch) | |
tree | 230287a124a743f4a6004de80afd52403a4f1f7e | |
parent | 2dc6fe0505c2f8a5cbef51a32732b6f97dbfc898 (diff) | |
download | rpm-362d1ae73fdfe76b07fba14a28b139048c8965e6.tar.gz rpm-362d1ae73fdfe76b07fba14a28b139048c8965e6.tar.bz2 rpm-362d1ae73fdfe76b07fba14a28b139048c8965e6.zip |
- resurrect availablePackages one more time.
CVS patchset: 5871
CVS date: 2002/11/15 21:10:32
-rw-r--r-- | CHANGES | 1 | ||||
-rw-r--r-- | elfutils/po/elfutils.pot | 2 | ||||
-rw-r--r-- | python/rpmts-py.c | 14 | ||||
-rw-r--r-- | rpm.spec.in | 5 |
4 files changed, 13 insertions, 9 deletions
@@ -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. diff --git a/elfutils/po/elfutils.pot b/elfutils/po/elfutils.pot index bbe30901e..93be5aff4 100644 --- a/elfutils/po/elfutils.pot +++ b/elfutils/po/elfutils.pot @@ -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" diff --git a/python/rpmts-py.c b/python/rpmts-py.c index 6600c17b9..2db656734 100644 --- a/python/rpmts-py.c +++ b/python/rpmts-py.c @@ -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); diff --git a/rpm.spec.in b/rpm.spec.in index f39ec7886..29cff71e9 100644 --- a/rpm.spec.in +++ b/rpm.spec.in @@ -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. |