Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 58576 - rpmmodule.c is unusable
rpmmodule.c is unusable
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm-python (Show other bugs)
i386 Linux
high Severity high
: ---
: ---
Assigned To: Jeff Johnson
: 58583 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2002-01-20 07:13 EST by Michael Lipp
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-01-29 16:18:24 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Michael Lipp 2002-01-20 07:13:12 EST
The rpmmodule.c has (since several versions of rpm) a wrongly defined method
table. E.g.

	{"verifyFile",	(PyCFunction) hdrVerifyFile,	1 },

does not work, becaus "1" means METH_VARARGS and in thos case the argument is
a python tuple. The associated function expects an interger, however:

  static PyObject * hdrVerifyFile(hdrObject * s, PyObject * args) {

    if (!PyInt_Check(args)) {
	PyErr_SetString(PyExc_TypeError, "integer expected");
	return NULL;

This applies to several functions in rpmmodule.c. making these functions
effectivly unusable.
Comment 1 Jeff Johnson 2002-08-07 19:19:51 EDT
hdrVerifyFile is now removed from the
bindings. Will be resurrrected as a
binding to rpmcliVerify somwhen.

Change will be in rpm-4.1-0.76 when built.
Comment 2 Jeff Johnson 2002-08-07 19:20:50 EDT
*** Bug 58583 has been marked as a duplicate of this bug. ***

Note You need to log in before you can comment on or make changes to this bug.