On Wed, Jan 02, 2008 at 03:15:21PM -0800, [EMAIL PROTECTED] wrote:

> > > http://cr.opensolaris.org/~johansen/pkg-unknown/
> > 
> > catalog.py:
> > 
> >   - line 544 (and similar): consider the idiom:
> >     
> >         if cv in "CV" and ...
> 
> The only problem with this approach is that if we get a malformed line
> that actually starts with CV it will pass the check.

Holy crap, how embarrassing.  How about

    if cv in tuple("CV") and ...

Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to