Re: File Dependancy should be counted in a reference.

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

 



You should not *care* how many packages have the dependency, only that *any* package has the dependency, and you have a report from RPM itself of what those packages are. Why do you need to bother to count them and add yet another set of superfluous database entries to corrupt and try to keep reconciled?

Do not insert yet another set of database tables that simply replicates data you already have. That way lies madness..


On Sun, Oct 13, 2013 at 11:05 AM, Rex Dieter <rdieter@xxxxxxxxxxxx> wrote:
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

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux