Test rpmmi pattern match too while testing for the single instance thing

This commit is contained in:
Panu Matilainen 2013-03-26 12:55:53 +02:00
parent be230de053
commit 56028aab2b
1 changed files with 6 additions and 4 deletions

View File

@ -198,10 +198,12 @@ runroot rpm -i \
RPMPY_CHECK([
ts = rpm.ts()
ix = 0
for h in ts.dbMatch():
if h['name'] == 'hello':
ix = h['dbinstance']
break
mi = ts.dbMatch()
mi.pattern('name', rpm.RPMMIRE_STRCMP, 'hello')
for h in mi:
ix = h['dbinstance']
break
del mi
for h in ts.dbMatch('packages', ix):
myprint(h['nevra'])
],