docs: def get_sig_info(hdr):
      """
      hand back signature information and an error code
  
      Shamelessly stolen from Seth Vidal
      http://yum.baseurl.org/download/misc/checksig.py
      """
      string = '%|DSAHEADER?{%{DSAHEADER:pgpsig}}:{%|RSAHEADER?{%{RSAHEADER:pgpsig}}:{%|SIGGPG?{%{SIGGPG:pgpsig}}:{%|SIGPGP?{%{SIGPGP:pgpsig}}:{(none)}|}|}|}|'
      siginfo = hdr.sprintf(string)
      if siginfo != '(none)':
          error = 0
          sigtype, sigdate, sigid = siginfo.split(',')
      else:
          error = 101
          sigtype = 'MD5'
          sigdate = 'None'
          sigid = 'None'
  
      infotuple = (sigtype, sigdate, sigid)
      return error, infotuple