'Parses a textual representation of a package specification
:type text: string
:param text: textual representation of a package in koji'

def parse(self, text):

    parts = (text.count(self.SEP) + 1)
    if (parts == 1):
        raise ValueError('KojiScratchPkgSpec    requires    a    user    and    task    id')
    elif (parts == 2):
        (self.user, self.task) = text.split(self.SEP)
    elif (parts >= 3):
        (part1, part2, part3) = text.split(self.SEP)[0:3]
        self.user = part1
        self.task = part2
        self.subpackages = part3.split(',')
