Checkout and merge before updating packages