|
@@ -37,8 +37,7 @@ class DeleteMixIn:
|
|
try:
|
|
try:
|
|
current_archive = manifest.archives.pop(archive_name)
|
|
current_archive = manifest.archives.pop(archive_name)
|
|
except KeyError:
|
|
except KeyError:
|
|
- self.exit_code = EXIT_WARNING
|
|
|
|
- logger.warning(f"Archive {archive_name} not found ({i}/{len(archive_names)}).")
|
|
|
|
|
|
+ self.print_warning(f"Archive {archive_name} not found ({i}/{len(archive_names)}).")
|
|
else:
|
|
else:
|
|
deleted = True
|
|
deleted = True
|
|
if self.output_list:
|
|
if self.output_list:
|
|
@@ -50,9 +49,9 @@ class DeleteMixIn:
|
|
manifest.write()
|
|
manifest.write()
|
|
# note: might crash in compact() after committing the repo
|
|
# note: might crash in compact() after committing the repo
|
|
repository.commit(compact=False)
|
|
repository.commit(compact=False)
|
|
- logger.warning('Done. Run "borg check --repair" to clean up the mess.')
|
|
|
|
|
|
+ self.print_warning('Done. Run "borg check --repair" to clean up the mess.')
|
|
else:
|
|
else:
|
|
- logger.warning("Aborted.")
|
|
|
|
|
|
+ self.print_warning("Aborted.")
|
|
return self.exit_code
|
|
return self.exit_code
|
|
|
|
|
|
stats = Statistics(iec=args.iec)
|
|
stats = Statistics(iec=args.iec)
|
|
@@ -73,7 +72,7 @@ class DeleteMixIn:
|
|
try:
|
|
try:
|
|
archive_info = manifest.archives[archive_name]
|
|
archive_info = manifest.archives[archive_name]
|
|
except KeyError:
|
|
except KeyError:
|
|
- logger.warning(msg_not_found.format(archive_name, i, len(archive_names)))
|
|
|
|
|
|
+ self.print_warning(msg_not_found.format(archive_name, i, len(archive_names)))
|
|
else:
|
|
else:
|
|
if self.output_list:
|
|
if self.output_list:
|
|
logger_list.info(msg_delete.format(format_archive(archive_info), i, len(archive_names)))
|
|
logger_list.info(msg_delete.format(format_archive(archive_info), i, len(archive_names)))
|