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

Bug#246144: apt-cache should validate commandline args before parsing the package data



severity 246144 wishlist
tags 246144 wontfix
thanks

On Tue, Apr 27, 2004 at 05:15:05PM +0300, Gintautas Miliauskas wrote:

> apt-cache should validate commandline arguments prior to parsing the
> package database:
> 
> [~]$ time apt-cache foo
> E: Invalid operation foo
> 
> real    0m2.283s
> user    0m2.084s
> sys     0m0.103s
> 
> (strace reveals that it indeed reads the database)
> 
> I know this is nitpicking, but it shouldn't be hard to fix.

As a matter of fact, it is not simple to fix, and this case doesn't seem
worth optimizing.

-- 
 - mdz



Reply to: