'Parse the yum output.'

def Parse(self, cmd, args, stdout, stderr, return_val, time_taken, knowledge_base):

    _ = (stderr, time_taken, args, knowledge_base)
    self.CheckReturn(cmd, return_val)
    for line in stdout.splitlines()[1:]:
        cols = line.split()
        (name_arch, version, source) = cols
        (name, arch) = name_arch.split('.')
        status = rdf_client.SoftwarePackage.InstallState.INSTALLED
        (yield rdf_client.SoftwarePackage(name=name, publisher=source, version=version, architecture=arch, install_state=status))
