From c25b2ba21fbf5a349a49173bdfd82e208b9f74bd Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Wed, 20 Mar 2013 15:08:00 -0400 Subject: migrate_perms_to_mode.py: really seriously handle nested Path tags --- tools/upgrade/1.3/migrate_perms_to_mode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/upgrade/1.3/migrate_perms_to_mode.py b/tools/upgrade/1.3/migrate_perms_to_mode.py index de336456f..ff3fe91c0 100755 --- a/tools/upgrade/1.3/migrate_perms_to_mode.py +++ b/tools/upgrade/1.3/migrate_perms_to_mode.py @@ -36,7 +36,7 @@ def convertstructure(structfile): """Do perms -> mode conversion for structure files.""" xdata = lxml.etree.parse(structfile) found = False - for path in xdata.xpath('//BoundPath|Path'): + for path in xdata.xpath('//BoundPath|//Path'): found = setmodeattr(path) if found: writefile(structfile, xdata) -- cgit v1.2.3-1-g7c22