예제 #1
0
파일: rpm_metadata.py 프로젝트: abrt/faf
    def endElement(self, name):
        self._current = None

        if name == "rpm:sourcerpm":
            nvra = parse.parse_nvra(self._package["srpm"])
            self._package["base_package_name"] = nvra["name"]

        if name == "package":
            pkg = self._package
            self._package = None
            self._result.append(pkg)
예제 #2
0
    def endElement(self, name):
        self._current = None

        if name == "rpm:sourcerpm":
            nvra = parse.parse_nvra(self._package["srpm"])
            self._package["base_package_name"] = nvra["name"]

        if name == "package":
            pkg = self._package
            self._package = None
            self._result.append(pkg)