diff options
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/pomfile.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lib/pomfile.py b/tools/lib/pomfile.py index 88bfa90e..c73fbc82 100644 --- a/tools/lib/pomfile.py +++ b/tools/lib/pomfile.py @@ -35,10 +35,11 @@ class PomFile: # value: value to set def setXmlValue(self, valuePath, value, replaceMultiple=False) -> bool: if value is None: + print("unable to set {} to {} in {}: {}".format(valuePath, value, self.filename, str(False))) return False found=False pathToFind = XPath(valuePath) - pattern = re.compile('<([^>^\ ^?^!]+)') + pattern = re.compile('<([^>^\ ^?^!]+(\ \/)?)') curPath=XPath() curParent=None isComment=False |