Unittestler birkaç hata daha yakaladı.

her spec dosyası içerisinde dependency tanımları ve patch olmak
zorunda değil. specfile içerisinde bunun için gerekli düzenleme
yapıldı.

xmlfile içerisine xml hata-yakalama eklendi.
This commit is contained in:
Barış Metin
2005-06-16 10:32:08 +00:00
parent 346229e4e7
commit ec88a6f821
+4 -2
View File
@@ -65,10 +65,12 @@ class SpecFile(XmlFile):
self.source.archiveType = getNodeAttribute(archiveNode, "archType")
self.source.archiveMD5 = getNodeAttribute(archiveNode, "md5sum")
patchElts = self.getChildElts("Source/Patches")
self.source.patches = [ PatchInfo(p) for p in patchElts ]
if patchElts:
self.source.patches = [ PatchInfo(p) for p in patchElts ]
buildDepElts = self.getChildElts("Source/BuildDependencies")
self.source.buildDeps = [DepInfo(d) for d in buildDepElts]
if buildDepElts:
self.source.buildDeps = [DepInfo(d) for d in buildDepElts]
historyElts = self.getAllNodes("History/Update")
self.source.history = [HistoryInfo(x) for x in historyElts]