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

Bug#571443: Support using "in" operator to test whether a package is in the cache



On Thu, Feb 25, 2010 at 05:11:06PM +0100, Julian Andres Klode wrote:
> Use::
> 
>     'foo' in cache.packages
> 
> I could also try to implement most of the mapping stuff in
> apt_pkg.Cache, so one can just treat the cache as a mapping.

Thanks again for the information.  After looking around, I ended up
using apt.cache.Cache, which supports this construct and has other
helpful members.  Feel free to close this bug.

-- 
Matt                                            http://ftbfs.org/kraai



Reply to: