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

Bug#122304: bug-fix patch



On Tue, Jun 01, 2004 at 03:21:56PM -0600, Daniel Miles wrote:

> Since the problem was that the decision was being made to early, what I
> did was postpone the decision. I modified apt-pkg/depcache.cc::MarkInstall
> to skip Or groups instead of finding a package to satisfy and recursing.
> Next I added a new function apt-pkg/depcache.cc::MarkOrsInstall that is to
> be called after ALL of the user-specified arguments had been through
> MarkInstall. At that point I could tell if a secondary member of an Or
> group had already been marked for install (in other words if it existed as
> a single dependency elsewhere). Or groups that have a member already
> marked are considered satisfied and only MarkOrsInstall is called for that
> package. Or groups that do NOT have a member already marked are satisfied
> with their first member and both MarkInstall and MarkOrsInstall are called
> for that package.

Thanks for this.  If I understand it correctly, it means that the apt
frontends (aptitude, synaptic, etc.) will need to change the way that they
install packages.  Because of this, and also because it changes the ABI, we
can't do this in the 0.5.x branch of apt: the dependencies of the base
system have been frozen for some time now.

I am interested in testing this change on the 0.6.x branch, though.

-- 
 - mdz



Reply to: