Re: python and rpm

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

 



On Fri, 2006-02-24 at 08:04 +0100, Tim Lauridsen wrote:
> Chitlesh GOORAH wrote:
>    
> What about something like this
> 
> for mi in ts.dbMatch ('name', 'kernel'):
>     name = mi['name']
>     if name.find('hypervisor') <> -1:
> 	# Do the stuff 

Or you could use mi.pattern
mi = ts.dbMatch()
mi.pattern("name",rpm.RPMMIRE_GLOB,"kernel*hypervisor")

Paul

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux