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

Re: Looking for docs on libapt



On Wed, 6 Sep 2000, erik wrote:

>   a. is there a method that can include the "Recommends" and "Suggests"
>    in dependancy checking? And what's the return?

Not really.. but you wouldn't want to do that anyhow. You'll want to
perform a sort of 'weak' selection that doesn't go into the problem
resolver.

If you look at the markinstall function you can see how that is done. Call
mark install then process suggests/recommends for that package similarly.

>   b. Where is the method to " --set-selections" or its equivilant - I ask
> this because it is not clear to me what the precise interface with dpkg

You use MarkInstall/MarkKeep/MarkRemove on the DepCache (dependency cache)

> is. Do adjustments take place in the cache before sending the final order
> to dpkg or is dpkg involved with preliminary adjustment routines?

Dpkg is only used as a way to install .debs, all selection and ordering is
done internally.

>   c. Is there anything for handling "Priority" in this regard?

Priority is a variable that is available per-package, but it plays no role
in dependency selection.
   
>   d. Where is the interface to the library equivilant to apt-cache <some
> option> likely to be found?

Read the apt-cache source? It's pretty short most of it and is one of the
better example programs. I had a nice email on this subject but I keep
loosing it.. 

Jason



Reply to: