summaryrefslogtreecommitdiffstats
path: root/format.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-11-18 20:21:06 +0100
committerJan Pokorný <jpokorny@redhat.com>2013-11-18 20:21:06 +0100
commit4c95ff7709ac5611245c815db4d48680fd84c79b (patch)
tree356c3d3b5edbf9f45bb531711f21d4e50795ea6b /format.py
parenta570ba46108971fdc7d0156a24d0678764fda3e3 (diff)
downloadclufter-4c95ff7709ac5611245c815db4d48680fd84c79b.tar.gz
clufter-4c95ff7709ac5611245c815db4d48680fd84c79b.tar.xz
clufter-4c95ff7709ac5611245c815db4d48680fd84c79b.zip
format: enforce solely xml_root at the walk tree root
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'format.py')
-rw-r--r--format.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/format.py b/format.py
index 8dd7108..f135c3b 100644
--- a/format.py
+++ b/format.py
@@ -248,6 +248,7 @@ class XML(Format):
# at root, we do not traverse to any other dir than `xml_root`
map(lambda d: d != xml_root and dirs.remove(d), dirs[:])
current_tracking = tree_stack[-1][2]
+ files = []
for i in dirs + files:
name, ext = splitext(i) # does not hurt even if it is a dir