RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
____________________________________________________________________________
Server: rpm5.org Name: Jeff Johnson
Root: /v/rpm/cvs Email: jbj@rpm5.org
Module: rpm Date: 31-Aug-2007 15:02:34
Branch: HEAD Handle: 2007083114023400
Modified files:
rpm/python header-py.c
Log:
rpm.org compatible behavior.
Summary:
Revision Changes Path
1.53 +5 -1 rpm/python/header-py.c
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: rpm/python/header-py.c
============================================================================
$ cvs diff -u -r1.52 -r1.53 header-py.c
--- rpm/python/header-py.c 28 Aug 2007 00:16:04 -0000 1.52
+++ rpm/python/header-py.c 31 Aug 2007 13:02:34 -0000 1.53
@@ -619,7 +619,11 @@
static PyObject * hdr_getattro(PyObject * o, PyObject * n)
/*@*/
{
- return PyObject_GenericGetAttr(o, n);
+ PyObject * res;
+ res = PyObject_GenericGetAttr(o, n);
+ if (res == NULL)
+ res = hdr_subscript(o, n);
+ return res;
}
static int hdr_setattro(PyObject * o, PyObject * n, PyObject * v)
@@ .
Received on Fri Aug 31 15:02:34 2007