Cope with missing root.
This commit is contained in:
parent
ac553e1ae9
commit
0f08d14d81
1 changed files with 4 additions and 0 deletions
|
@ -186,6 +186,10 @@ class Pear(BuildSystem):
|
||||||
logging.warning("Unable to parse package.xml: %s", e)
|
logging.warning("Unable to parse package.xml: %s", e)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if not tree.root:
|
||||||
|
# No root?
|
||||||
|
return
|
||||||
|
|
||||||
for ns in cls.PEAR_NAMESPACES:
|
for ns in cls.PEAR_NAMESPACES:
|
||||||
if tree.root.tag == '{%s}package' % ns:
|
if tree.root.tag == '{%s}package' % ns:
|
||||||
logging.debug("Found package.xml with namespace %s, assuming pear package.")
|
logging.debug("Found package.xml with namespace %s, assuming pear package.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue