Fix borg-list --list-format

This commit is contained in:
Marian Beermann 2016-08-16 20:46:54 +02:00
parent 774609cd9f
commit 146d531d9e
2 changed files with 2 additions and 2 deletions

View file

@ -1247,7 +1247,7 @@ class Archiver:
for old_name, new_name, warning in deprecations:
if arg.startswith(old_name):
args[i] = arg.replace(old_name, new_name)
self.print_warning(warning)
print(warning, file=sys.stderr)
return args
def build_parser(self, prog=None):

View file

@ -1203,7 +1203,7 @@ class ArchiverTestCase(ArchiverTestCaseBase):
self.cmd('init', self.repository_location)
test_archive = self.repository_location + '::test'
self.cmd('create', test_archive, src_dir)
self.cmd('list', '--list-format', '-', test_archive, exit_code=1)
self.cmd('list', '--list-format', '-', test_archive)
self.archiver.exit_code = 0 # reset exit code for following tests
output_1 = self.cmd('list', test_archive)
output_2 = self.cmd('list', '--format', '{mode} {user:6} {group:6} {size:8d} {isomtime} {path}{extra}{NEWLINE}', test_archive)