* typo
This commit is contained in:
+2
-1
@@ -27,7 +27,8 @@ def install_package_file(package_fn):
|
|||||||
metadata = MetaData()
|
metadata = MetaData()
|
||||||
metadata.read(install_dir() + '/metadata.xml')
|
metadata.read(install_dir() + '/metadata.xml')
|
||||||
# check package semantics
|
# check package semantics
|
||||||
metadata.verify()
|
if not metadata.verify():
|
||||||
|
raise InstallError("MetaData format wrong")
|
||||||
|
|
||||||
# check file system requirements
|
# check file system requirements
|
||||||
# what to do if / is split into /usr, /var, etc.?
|
# what to do if / is split into /usr, /var, etc.?
|
||||||
|
|||||||
+1
-1
@@ -99,7 +99,7 @@ class XmlFile(object):
|
|||||||
|
|
||||||
def verifyRootTag(self):
|
def verifyRootTag(self):
|
||||||
if self.dom.documentElement.tagName != self.rootTag:
|
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):
|
def getNode(self, tagPath):
|
||||||
"""returns the *first* matching node for given tag path."""
|
"""returns the *first* matching node for given tag path."""
|
||||||
|
|||||||
Reference in New Issue
Block a user