[Rpm-maint] Repeated calls to mi.pattern() don't work.
Mike Brady
mike.brady at devnull.net.nz
Tue Feb 27 21:06:43 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The function rpmUtils.getIndexesByKeyword() distributed with YUM does
the following:
mi = ts.dbMatch()
for keyword in kwargs.keys():
mi.pattern(keyword, rpm.RPMMIRE_GLOB, kwargs[keyword])
Now there is a comment attached to it that says it is "excruciatingly
slow", but I thought I would give it a go any way.
But only the first call to mi.pattern() ever returns anything.
I also tried doing a
mi = ts.dbMatch('name', 'kernel')
first. In which case no iteration of the mi.pattern() returned anything.
Should repeated calls to mi.pattern() in this fashion work?
I am trying it with rpm 4.3.3 on Centos 4 x86_64.
Regards
Mike
- --
Mike Brady
GPG Key ID: 0x9C777DA4
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFF5J1j6xLAi5x3faQRAhgCAJ0bdwGsRjnO63MDCSwxT1DPJkhCJACfWYsh
atXw6iS+Q5bckYXrYKnwbpg=
=Qz2d
-----END PGP SIGNATURE-----
More information about the Rpm-maint
mailing list