'Parse the status file.'

def Parse(self, stat, file_object, knowledge_base):

    (_, _) = (stat, knowledge_base)
    try:
        sw_data = file_object.read()
        for pkg in deb822.Packages.iter_paragraphs(sw_data.splitlines()):
            if self.installed_re.match(pkg['Status']):
                soft = rdf_client.SoftwarePackage(name=pkg['Package'], description=pkg['Description'], version=pkg['Version'], architecture=pkg['Architecture'], publisher=pkg['Maintainer'], install_state='INSTALLED')
                (yield soft)
    except SystemError:
        (yield rdf_anomaly.Anomaly(type='PARSER_ANOMALY', symptom='Invalid    dpkg    status    file'))
