docs: def _process_info_installed_output(out, filter_attrs):
      '''
      Helper function for info_installed()
  
      Processes stdout output from a single invocation of
      'opkg status'.
      '''
      ret = {}
      name = None
      attrs = {}
      attr = None
  
      for line in salt.utils.itertools.split(out, '\n'):
          if line and line[0] == ' ':
              # This is a continuation of the last attr
              if filter_attrs is None or attr in filter_attrs:
                  line = line.strip()
                  if attrs[attr]:
                      # If attr is empty, don't add leading newline
                      attrs[attr] += '\n'
                  attrs[attr] += line
              continue
          line = line.strip()
          if not line:
              # Separator between different packages
              if name:
                  ret[name] = attrs
              name = None
              attrs = {}
              attr = None
              continue
          key, value = line.split(':', 1)
          value = value.lstrip()
          attr = _convert_to_standard_attr(key)
          if attr == 'name':
              name = value
          elif filter_attrs is None or attr in filter_attrs:
              attrs[attr] = value
  
      if name:
          ret[name] = attrs
      return ret