Refresh packages contents if needed