tech-pkg archive

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

Proposed fix for pkg_admin +REQUIRED_BY duplicates

Here's a patch that not only fixes duplicate entries in +REQUIRED_BY
files after running "pkg_admin rebuild-tree", but also improves
performance significantly:

tl;dr: reduces the runtime of "pkg_admin rebuild-tree" on a system
with 12,762 packages installed down from 13m 52s to just 1m 4s.  Even
on my local MacBook with only 197 packages it halves the runtime.

With this in place I will be changing pkgin to run rebuild-tree after
every upgrade, and won't be pursuing the other proposed change as it
doesn't handle all cases.


Jonathan Perkin  -  Joyent, Inc.  -

Home | Main Index | Thread Index | Old Index