script to update repository file