There's a merged pull request on the void-packages repository xbps-src: (zap) correctly empty the masterdir https://github.com/void-linux/void-packages/pull/15437 Description: Instead of relying on a potentially outdated list of files and dirs to remove, just remove+recreate the whole masterdir. This previously led to leftover .xbps* files, which broke subsequent operations. See: #14476