upgrade package if needed in update task