Rename function update_repository to update_repositories in upgrade scri...

...pts

The function update_repository was called in the base upgrade scripts but
seems to not be defined anywhere, plus the mysql upgrade script uses
update_repositories. I suspect it was a left over during a function rename.