add repository to metadata
ignore errors caused by two processes trying to remove a scoreboard file at the same time