From 99e34f26fb35e4dbaffa83d795ae2af1f500cb23 Mon Sep 17 00:00:00 2001 From: jbj Date: Fri, 11 Jun 2004 17:52:58 +0000 Subject: [PATCH] - python: permit integer keys to ts.dbMatch(). CVS patchset: 7306 CVS date: 2004/06/11 17:52:58 --- CHANGES | 2 ++ python/rpmts-py.c | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index 8a2b229..109bd15 100644 --- a/CHANGES +++ b/CHANGES @@ -10,6 +10,8 @@ - lua embedded in rpmio. - use lua to identify desired selinux file context regexes. - add 'requires' and 'conflicts' tag aliases. + - python: return ds, not tuple, for ds iteration. + - python: permit integer keys to ts.dbMatch(). 4.3 -> 4.3.1: - fix: don't add leading space to %* argv expansion (#119059). diff --git a/python/rpmts-py.c b/python/rpmts-py.c index bfa21d7..a1b950a 100644 --- a/python/rpmts-py.c +++ b/python/rpmts-py.c @@ -1332,6 +1332,7 @@ fprintf(stderr, "*** rpmts_Match(%p) ts %p\n", s, s->ts); } /* XXX If not already opened, open the database O_RDONLY now. */ + /* XXX FIXME: lazy default rdonly open also done by rpmtsInitIterator(). */ if (s->ts->rdb == NULL) { int rc = rpmtsOpenDB(s->ts, O_RDONLY); if (rc || s->ts->rdb == NULL) { -- 2.7.4