[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: python and rpm



Chitlesh GOORAH wrote:
hai there
i got a question related with rpm

for mi in ts.dbMatch ('name', 'kernel'):

it searches for kernel
good. now I want it to search for 'hypervisor' ?

it is not a 'release'

how should i proceed?

--
http://clunixchit.blogspot.com

What about something like this

for mi in ts.dbMatch ('name', 'kernel'):
   name = mi['name']
   if name.find('hypervisor') <> -1:
# Do the stuff Tim Lauridsen


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]