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

Re: Bug#111654: Bug#113657: aptitude: Support tasks



> Well, I'd say, for now it is probably OK to use the GetRec function and
> pass that to a tag parser.
> 
> Something like
> 
>     const char *Start;
>     const char *End;
>     pkgTagSection Sec;
> 
>     Rec.GetRec(Start,End);
>     Sec.Scan(Start,End - Start);
>     Sec.Find("Tasks",Start,Enn);
> 
>     debListParser::ParseDepends(....);
> 
> I'm not really sure what to do with the task lists, I wonder if they
> should be cached? That would be a 3 line binary compatible change..

Parsing the Task: header in the packages file is not enough; tasksel
also reads an auxilliary data file which contains the task descriptions.

randolph
-- 
Debian Developer <tausq@debian.org>
http://www.TauSq.org/



Reply to: