diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-03-26 17:00:20 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-03-26 17:11:12 +0200 |
commit | 01b047e7591dcff0897865350476d773406da068 (patch) | |
tree | a46d4835861161d5b7e10a8dc21c2edd27575011 /python/rpmds-py.c | |
parent | b88d5d3aaf4e5174a4683cef4d5d3ba0de28f3b1 (diff) | |
download | rpm-01b047e7591dcff0897865350476d773406da068.tar.gz rpm-01b047e7591dcff0897865350476d773406da068.tar.bz2 rpm-01b047e7591dcff0897865350476d773406da068.zip |
Take advantage of rpmdsCurrent() in python bindings
Diffstat (limited to 'python/rpmds-py.c')
-rw-r--r-- | python/rpmds-py.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/python/rpmds-py.c b/python/rpmds-py.c index 49a02e483..0b5d9dfd6 100644 --- a/python/rpmds-py.c +++ b/python/rpmds-py.c @@ -90,12 +90,7 @@ rpmds_iternext(rpmdsObject * s) /* If more to do, return a (N, EVR, Flags) tuple. */ if (rpmdsNext(s->ds) >= 0) { - const char * N = rpmdsN(s->ds); - const char * EVR = rpmdsEVR(s->ds); - rpmTag tagN = rpmdsTagN(s->ds); - rpmsenseFlags Flags = rpmdsFlags(s->ds); - - result = rpmds_Wrap(Py_TYPE(s), rpmdsSingle(tagN, N, EVR, Flags) ); + result = rpmds_Wrap(Py_TYPE(s), rpmdsCurrent(s->ds)); } else s->active = 0; |