Use the correct php5 repo and only try to add it if its not already there, only do an update if not done in 24 hours