]> arthur.barton.de Git - bup.git/commitdiff
vfs: fix finish_extract()
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 28 Jan 2020 23:19:33 +0000 (00:19 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sun, 2 Feb 2020 18:14:35 +0000 (12:14 -0600)
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>
lib/bup/metadata.py

index 27f5276b096009e8ea957c7c281fbe48e795b84b..48b1a07d5009b0f90342a807f561cf9960cb1f8d 100644 (file)
@@ -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)