repair update function for appstore