On 29/09/06, Sideris Michael <[EMAIL PROTECTED]> wrote:
On Fri, Sep 29, 2006 at 11:41:29PM +0930, Graham Gower wrote:
> The dependencies should get a reference counter rather than a tag.
>
> Graham
Can you elaborate a bit on that by giving an example?
--
Sideris Michael
http://black.daemons.gr/msid/
Package A is dependent on Z.
Package B is dependent on Z.
When you install package A, Z gets installed and has a reference count of 1.
You then install package B, which increments Z's reference count to 2.
Uninstalling B causes Z's reference count to be decremented back to 1.
Uninstalling A causes Z's reference count to decrement to 0.
Any packages who's reference count drop to 0 can safely be removed.
http://en.wikipedia.org/wiki/Reference_counting
Graham