void-linux / xbps

The X Binary Package System (XBPS)
https://voidlinux.org/xbps/
Other
821 stars 124 forks source link

xbps-install looks at installed package's conf_files when updating instead of the new package's one #604

Closed meator closed 1 month ago

meator commented 1 month ago

The polybar Void linux package was lacking /etc/polybar/config.ini in its conf_files, so updates of polybar would have incorrectly overwritten it. This was fixed in https://github.com/void-linux/void-packages/commit/2ff911309930b4b35b13a0c9fe400a52303d5dbe, adding /etc/polybar/config.ini to polybar's conf_files. The problem is that xbps-install will look at the old package's metadata when evaluating conf_files. The old packages had no conf_files, so this update will happily overwrite /etc/polybar/config.ini, even though the sole purpose of https://github.com/void-linux/void-packages/commit/2ff911309930b4b35b13a0c9fe400a52303d5dbe is to prevent that.

I believe that the conf_files property of the "incoming" package should be prioritized when extracting an update.

meator commented 1 month ago

oops, duplicate of #342