Browse Source

print out which container didn't have all it's files added

main
John-Mark Gurney 2 years ago
parent
commit
f2db9119e4
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      ui/fixtures/cmd.container.json
  2. +1
    -1
      ui/medashare/cli.py

+ 1
- 1
ui/fixtures/cmd.container.json View File

@@ -15,7 +15,7 @@
{ {
"title": "import partial container", "title": "import partial container",
"cmd": [ "container", "somedir.torrent" ], "cmd": [ "container", "somedir.torrent" ],
"stderr": "Warning, incomple/invalid files, not added:\n\t'filea.txt'\n\t'filec.txt'\n\t'filee.txt'\n"
"stderr": "Warning, incomple/invalid files, not added for 'somedir.torrent':\n\t'filea.txt'\n\t'filec.txt'\n\t'filee.txt'\n"
}, },
{ {
"special": "verify store object cnt", "special": "verify store object cnt",


+ 1
- 1
ui/medashare/cli.py View File

@@ -951,7 +951,7 @@ def cmd_container(options):
good, bad = validate_file(i) good, bad = validate_file(i)


if bad: if bad:
print('Warning, incomple/invalid files, not added:',
print('Warning, incomple/invalid files, not added for %s:' % repr(i),
file=sys.stderr) file=sys.stderr)
print('\n'.join('\t%s' % print('\n'.join('\t%s' %
repr(str(pathlib.Path(*x.parts[1:]))) for x in repr(str(pathlib.Path(*x.parts[1:]))) for x in


Loading…
Cancel
Save