On 2022/03/15 11:50, Marc Espie wrote:
> I've changed pkg_add for updates and tied files a while back, which resulted
> in creating a lot of temp files. The logic was complicated, and I didn't
> want to make it more complex at the time until most of the issues were fixed.
> 
> Then we got tags, so that most packing-lists are innocuous these days.
> 
> Now is that time, the following patch may speed up some updates and additions
> significantly, in case the packing-lists don't contain "random execs".
> 
> What this does:
> - in case we extract a new file that's not on the filesystem, we can extract
> in-place instead of going through a temporary item
> 
> - in case we are matching files with identical files during an update, and
> the filename doesn't change, we acknowledge we don't need to do anything.
> 
> Caveat: this may bite. It is advised to run pkg_check afterwards and
> report file system discrepancies.

I've gone through updates on 3 machines (I ran pkg_check before and
after), no problems seen and it is faster for me.

Reply via email to