Timothy Ward wrote:
File dependancy should be counted like ref counting in gtk when a
program is added to the computer a reference count and a keyname is
added to a double-linked list in a system file then when the program is
removed the reference count for that dependent file is reduced by one,
when the count drops to zero the dependency is removed as it is no
longer used by any program. This way the spec file only increases the
reference count when the package is installed and reduces the reference
count when the package is removed.
I think that's how rpm works already. If multiple packages own the same
file or dir, only when the last owner is removed is the actual target
removed from the filesystem. Is that what you meant?
-- Rex