parameters: (self, new_dep_info)
docstring: Add the information from |new_dep_info| to this instance.
docstring_summary: Add the information from |new_dep_info| to this instance.
docstring_tokens: Add the information from |new_dep_info| to this instance .
function: def Update(self, new_dep_info):
      """Add the information from |new_dep_info| to this instance.
      """
      self._config_paths.extend(new_dep_info.config_paths)
      if (self.dependency != new_dep_info.dependency or
          self.platform != new_dep_info.platform):
        raise ValueError(
            'Cannot update DependencyInfo with different dependency or platform.'
            'Existing dep: %s, existing platform: %s. New dep: %s, new platform:'
            '%s. Config_paths conflicting: %s' % (
                self.dependency, self.platform, new_dep_info.dependency,
                new_dep_info.platform, self.config_paths))
      if new_dep_info.has_cloud_storage_info:
        if self.has_cloud_storage_info:
          raise ValueError(
              'Overriding cloud storage data is not allowed when updating a '
              'DependencyInfo. Conflict in dependency %s on platform %s in '
              'config_paths: %s.' % (self.dependency, self.platform,
                                     self.config_paths))
        else:
          self._cloud_storage_info = new_dep_info._cloud_storage_info
      if not self._local_path_info:
        self._local_path_info = new_dep_info._local_path_info
      else:
        self._local_path_info.Update(new_dep_info._local_path_info)
function_tokens: def Update ( self , new_dep_info ) : self . _config_paths . extend ( new_dep_info . config_paths ) if ( self . dependency != new_dep_info . dependency or self . platform != new_dep_info . platform ) : raise ValueError ( 'Cannot update DependencyInfo with different dependency or platform.' 'Existing dep: %s, existing platform: %s. New dep: %s, new platform:' '%s. Config_paths conflicting: %s' % ( self . dependency , self . platform , new_dep_info . dependency , new_dep_info . platform , self . config_paths ) ) if new_dep_info . has_cloud_storage_info : if self . has_cloud_storage_info : raise ValueError ( 'Overriding cloud storage data is not allowed when updating a ' 'DependencyInfo. Conflict in dependency %s on platform %s in ' 'config_paths: %s.' % ( self . dependency , self . platform , self . config_paths ) ) else : self . _cloud_storage_info = new_dep_info . _cloud_storage_info if not self . _local_path_info : self . _local_path_info = new_dep_info . _local_path_info else : self . _local_path_info . Update ( new_dep_info . _local_path_info )