File Dependancy should be counted in a reference.

Timothy Ward gtwa001 at gmail.com
Sun Oct 13 06:11:11 UTC 2013


Hi All,

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.

Cheers



More information about the devel mailing list