This fixes issues when writes fail (as example if the disk is full), where xbps would create empty repodata or stagedata archives.
This fixes issues when writes fail (as example if the disk is full), where xbps would create empty repodata or stagedata archives.