mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-26 17:57:59 +00:00
don't write to disk with --stdout, fixes #2645
if we always give stdout to extract_item(), it gets into the stdout- processing branch which only emits data from items that have chunks and does nothing for items which don't.
This commit is contained in:
parent
2ff880ec6e
commit
0b00c14c27
1 changed files with 2 additions and 2 deletions
|
@ -704,7 +704,7 @@ def peek_and_store_hardlink_masters(item, matched):
|
|||
else:
|
||||
if stat.S_ISDIR(item.mode):
|
||||
dirs.append(item)
|
||||
archive.extract_item(item, restore_attrs=False)
|
||||
archive.extract_item(item, stdout=stdout, restore_attrs=False)
|
||||
else:
|
||||
archive.extract_item(item, stdout=stdout, sparse=sparse, hardlink_masters=hardlink_masters,
|
||||
stripped_components=strip_components, original_path=orig_path, pi=pi)
|
||||
|
@ -721,7 +721,7 @@ def peek_and_store_hardlink_masters(item, matched):
|
|||
pi.show()
|
||||
dir_item = dirs.pop(-1)
|
||||
try:
|
||||
archive.extract_item(dir_item)
|
||||
archive.extract_item(dir_item, stdout=stdout)
|
||||
except BackupOSError as e:
|
||||
self.print_warning('%s: %s', remove_surrogates(dir_item.path), e)
|
||||
for pattern in matcher.get_unmatched_include_patterns():
|
||||
|
|
Loading…
Reference in a new issue