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

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



On Thu, Sep 27, 2001 at 08:03:44AM -0700, Randolph Chung <tausq@debian.org> was heard to say:
> > 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.

  That doesn't really need explicit libapt support, though, although it
would be nice.  I haven't considered the possibilities of GetRec, I may
look into that this weekend..

  Daniel

-- 
/-------------------- Daniel Burrows <dburrows@debian.org> -------------------\
|  Afternoon, n.:                                                             |
|    That part of the day we spend worrying about how we wasted the morning.  |
\-Evil Overlord, Inc: planning your future today. http://www.eviloverlord.com-/



Reply to: