import re


def getTags(text):
    """ Grep the tags in text and return them as a dict """
    # 'Name' 'Version' 'Type' 'Author' 'Origin' 'Category' 'ID'
    # 'URL' 'Desc' 'Date' 'Flags' 'RefCount' 'Signature' 'MASFile'
    # 'BaseSignature' 'MinVersion'
    # Name=134_JUDD
    tags = {}
    for line in text:
        m = re.match(r'(.*) *= *(.*)', line)
        if m:
            tags[m.group(1)] = m.group(2)
            #print(m.group(1), m.group(2))
    return tags