This commit is contained in:
Eray Özkural
2005-06-16 16:18:12 +00:00
parent 8449b5fc4d
commit 5ace86a80d
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -27,7 +27,8 @@ def install_package_file(package_fn):
metadata = MetaData()
metadata.read(install_dir() + '/metadata.xml')
# check package semantics
metadata.verify()
if not metadata.verify():
raise InstallError("MetaData format wrong")
# check file system requirements
# what to do if / is split into /usr, /var, etc.?
+1 -1
View File
@@ -99,7 +99,7 @@ class XmlFile(object):
def verifyRootTag(self):
if self.dom.documentElement.tagName != self.rootTag:
raise XmlError("Root tagname not " % self.rootTag % " as expected")
raise XmlError("Root tagname not " + self.rootTag + " as expected")
def getNode(self, tagPath):
"""returns the *first* matching node for given tag path."""