From d9fc57a3276a64129f0743dd73afad6ba63fdcc0 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Fri, 15 Mar 2013 11:01:03 -0400 Subject: migrate_perms_to_mode.py: fixed migration of nested BoundPath entries in bundles --- tools/upgrade/1.3/migrate_perms_to_mode.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) mode change 100644 => 100755 tools/upgrade/1.3/migrate_perms_to_mode.py (limited to 'tools/upgrade/1.3') diff --git a/tools/upgrade/1.3/migrate_perms_to_mode.py b/tools/upgrade/1.3/migrate_perms_to_mode.py old mode 100644 new mode 100755 index 0aa9c574c..a15de6e29 --- a/tools/upgrade/1.3/migrate_perms_to_mode.py +++ b/tools/upgrade/1.3/migrate_perms_to_mode.py @@ -36,9 +36,7 @@ def convertstructure(structfile): """Do perms -> mode conversion for structure files.""" xdata = lxml.etree.parse(structfile) found = False - for path in xdata.findall('//BoundPath'): - found = setmodeattr(path) - for path in xdata.findall('//Path'): + for path in xdata.xpath('//BoundPath|Path'): found = setmodeattr(path) if found: writefile(structfile, xdata) -- cgit v1.2.3-1-g7c22