The 'dir' variable doesn't exist here, must be 'meta' instead.
Fixes: 0962d3904735 ("Add initial support for metadata archives.")
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
(cherry picked from commit
9cbb51ec1423ef2e24f18f756585dcc39d8a54f2)
Tested-by: Rob Browning <rlb@defaultvalue.org>
break
xpath = _clean_up_extract_path(meta.path)
if not xpath:
- add_error(Exception('skipping risky path "%s"' % dir.path))
+ add_error(Exception('skipping risky path "%s"' % meta.path))
else:
if os.path.isdir(meta.path):
all_dirs.append(meta)