'Parse line parts containing information about an artifact.
:param list parts: The parts of resulting from splitting a comma
separated packer output line.'

def _parse_line_ARTIFACT(self, parts):

    artifact_type = parts[1]
    if (parts[4] == 'end'):
        self._current_artifact['type'] = artifact_type
        self.artifacts.append(freeze(self._current_artifact))
        self._current_artifact = {}
        return
    key = parts[4]
    value = parts[5:]
    if (len(value) == 1):
        value = value[0]
    self._current_artifact[key] = value
