newer patch Re: pkg_add: extract out-of-order archives

2014-06-14 Thread Marc Espie
Tweaked version. The previous version was working just fine, but this one also marks hardlinks and symlinks as skippable, as should be. It also adjusts the pace of progress slightly (making the meter jump AFTER skipping the entry), and also it does prepare_to_extract systematically (which will rech

Re: pkg_add: extract out-of-order archives

2014-06-12 Thread Marc Espie
On Thu, Jun 12, 2014 at 11:56:18AM +0200, Marc Espie wrote: > The neat effect will be to speed up updates, by relegating unchanged files > to the end of the archive, so they don't need to be fetched at all. It just occurred to me that the shuffle-stack change in gcc is going to make that optimisat

pkg_add: extract out-of-order archives

2014-06-12 Thread Marc Espie
I already sent a preliminary version of this patch to selected people. Now that packages use long names when needed, we can pinpoint every file in the archive based on its archived name. This patch changes pkg_add to be able to extract archives that contain elements out-of-order, e.g., match packa