docs: def string_to_version(verstring):
      """
      Return a tuple of (epoch, version, release) from a version string
  
      This function replaces rpmUtils.miscutils.stringToVersion, see
      https://bugzilla.redhat.com/1364504
      """
      # is there an epoch?
      components = verstring.split(':')
      if len(components) > 1:
          epoch = components[0]
      else:
          epoch = 0
  
      remaining = components[:2][0].split('-')
      version = remaining[0]
      release = remaining[1]
  
      return (epoch, version, release)