Code duplication, a workaround, to prevent exceptions during repositorydb update due to raw_version and revision variables