From a7c58c2baedc28e173e01c3accf527ee3ad0db47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Wed, 29 Jun 2005 12:19:18 +0000 Subject: [PATCH] =?UTF-8?q?=C3=96nemli:=20Specfile'da=20Files/File/Path=20?= =?UTF-8?q?i=C3=A7erisinde=20fileType=20attribute'u=20tan=C4=B1mlanmad?= =?UTF-8?q?=C4=B1ysa=20yerine=20"other"=20tipini=20tan=C4=B1mla.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit metadatatests'de çakılmasının nedeni tests/sandbox/metadata.xml'deki Path tagında fileType attribute'unun olmamasıydı. bu sorun pisinin çakılmasına yok açıyordu. Soru: Her path için fileType vermeye gerek varmı? Bence yok ve specfile içerisinde bunun için bir fallback tanımlamak uygun bir çözüm. Sizce? --- pisi/specfile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pisi/specfile.py b/pisi/specfile.py index c85128f4..6e98aaf5 100644 --- a/pisi/specfile.py +++ b/pisi/specfile.py @@ -75,6 +75,8 @@ class PathInfo: def __init__(self, node): self.pathname = getNodeText(node) self.fileType = getNodeAttribute(node, "fileType") + if not self.fileType: + self.fileType = "other" def elt(self, xml): node = xml.newNode("Path")