mirror of https://github.com/borgbackup/borg.git
Fix some item subscripts that came from 1.0-maint
This commit is contained in:
parent
963bdd340c
commit
52a72cf73a
|
@ -429,7 +429,7 @@ Number of files: {0.stats.nfiles}'''.format(
|
||||||
sys.stdout.buffer.flush()
|
sys.stdout.buffer.flush()
|
||||||
if has_damaged_chunks:
|
if has_damaged_chunks:
|
||||||
logger.warning('File %s has damaged (all-zero) chunks. Try running borg check --repair.' %
|
logger.warning('File %s has damaged (all-zero) chunks. Try running borg check --repair.' %
|
||||||
remove_surrogates(item[b'path']))
|
remove_surrogates(item.path))
|
||||||
return
|
return
|
||||||
|
|
||||||
original_path = original_path or item.path
|
original_path = original_path or item.path
|
||||||
|
|
|
@ -446,7 +446,7 @@ class Archiver:
|
||||||
try:
|
try:
|
||||||
archive.extract_item(dir_item, stdout=stdout)
|
archive.extract_item(dir_item, stdout=stdout)
|
||||||
except BackupOSError as e:
|
except BackupOSError as e:
|
||||||
self.print_warning('%s: %s', remove_surrogates(dir_item[b'path']), e)
|
self.print_warning('%s: %s', remove_surrogates(dir_item.path), e)
|
||||||
if output_list:
|
if output_list:
|
||||||
logging.getLogger('borg.output.list').info(remove_surrogates(orig_path))
|
logging.getLogger('borg.output.list').info(remove_surrogates(orig_path))
|
||||||
try:
|
try:
|
||||||
|
@ -468,7 +468,7 @@ class Archiver:
|
||||||
try:
|
try:
|
||||||
archive.extract_item(dir_item)
|
archive.extract_item(dir_item)
|
||||||
except BackupOSError as e:
|
except BackupOSError as e:
|
||||||
self.print_warning('%s: %s', remove_surrogates(dir_item[b'path']), e)
|
self.print_warning('%s: %s', remove_surrogates(dir_item.path), e)
|
||||||
for pattern in include_patterns:
|
for pattern in include_patterns:
|
||||||
if pattern.match_count == 0:
|
if pattern.match_count == 0:
|
||||||
self.print_warning("Include pattern '%s' never matched.", pattern)
|
self.print_warning("Include pattern '%s' never matched.", pattern)
|
||||||
|
|
Loading…
Reference in New Issue