pkgtools: upgradepkg optimisation
by Andypoo from LinuxQuestions.org on (#4SECC)
I noticed recently the change for --no-overwrite in installpkg and that got me thinking about something that has been on my mind for a while.
When I am doing machine upgrades (more common now with -current), then I am noticing a lot the time spent verifying/decompressing.
The change for no-overwrite got me looking at the installpkg/upgradepkg code, and I noticed that the current flow I believe includes 2 verifications (effectively, due to the two calls to installpkg if I'm not mistaken).
With the introduction of --no-overwrite, would it also be possible/appropriate to remove the verification from the second installpkg pass aswell?
Andypoo.


When I am doing machine upgrades (more common now with -current), then I am noticing a lot the time spent verifying/decompressing.
The change for no-overwrite got me looking at the installpkg/upgradepkg code, and I noticed that the current flow I believe includes 2 verifications (effectively, due to the two calls to installpkg if I'm not mistaken).
With the introduction of --no-overwrite, would it also be possible/appropriate to remove the verification from the second installpkg pass aswell?
Andypoo.