RPM Package Manager, CVS Repository
http://rpm5.org/cvs/
Server: rpm5.org Name: Jeff Johnson
Root: /v/rpm/cvs Email: [EMAIL PROTECTED]
Module: rpm Date: 06-Jun-2007 07:59:15
Branch: rpm-4_5 Handle: 2007060606591401
Modified files: (Branch: rpm-4_5)
rpm CHANGES
rpm/python header-py.c
Log:
- python: permit hdr.name as well as hdr['name'].
Summary:
RevisionChanges Path
1.1360.2.6 +1 -0 rpm/CHANGES
1.44.2.2+4 -1 rpm/python/header-py.c
patch -p0 <<'@@ .'
Index: rpm/CHANGES
$ cvs diff -u -r1.1360.2.5 -r1.1360.2.6 CHANGES
--- rpm/CHANGES 6 Jun 2007 05:41:04 - 1.1360.2.5
+++ rpm/CHANGES 6 Jun 2007 05:59:14 - 1.1360.2.6
@@ -9,6 +9,7 @@
- revert indices to db_hash for compatibility.
- python: missing ts reference while iterating(#241751).
- python: pathetic band-aid pythonic return fixing (#239586).
+ - python: permit hdr.name as well as hdr['name'].
4.4.8 -> 4.4.9:
- start rpm-4.4.9 devel.
@@ .
patch -p0 <<'@@ .'
Index: rpm/python/header-py.c
$ cvs diff -u -r1.44.2.1 -r1.44.2.2 header-py.c
--- rpm/python/header-py.c6 Jun 2007 05:41:05 - 1.44.2.1
+++ rpm/python/header-py.c6 Jun 2007 05:59:15 - 1.44.2.2
@@ -618,7 +618,10 @@
static PyObject * hdr_getattro(PyObject * o, PyObject * n)
/[EMAIL PROTECTED]/
{
-return PyObject_GenericGetAttr(o, n);
+PyObject * 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)
@@ .
__
RPM Package Managerhttp://rpm5.org
CVS Sources Repositoryrpm-cvs@rpm5.org