From: Johannes Berg Date: Tue, 28 Jan 2020 23:19:33 +0000 (+0100) Subject: vfs: fix finish_extract() X-Git-Tag: 0.31~174 X-Git-Url: https://arthur.barton.de/gitweb/?p=bup.git;a=commitdiff_plain;h=9cbb51ec1423ef2e24f18f756585dcc39d8a54f2 vfs: fix finish_extract() The 'dir' variable doesn't exist here, must be 'meta' instead. Fixes: 0962d3904735 ("Add initial support for metadata archives.") Signed-off-by: Johannes Berg Reviewed-by: Rob Browning --- diff --git a/lib/bup/metadata.py b/lib/bup/metadata.py index 27f5276..48b1a07 100644 --- a/lib/bup/metadata.py +++ b/lib/bup/metadata.py @@ -1186,7 +1186,7 @@ def finish_extract(file, restore_numeric_ids=False): xpath = _clean_up_extract_path(meta.path) if not xpath: add_error(Exception('skipping risky path "%s"' - % path_msg(dir.path))) + % path_msg(meta.path))) else: if os.path.isdir(meta.path): all_dirs.append(meta)