Remove extraneous doc message

main
Fabien Benureau 9 years ago
parent b2ebc67f5e
commit b6e8139bc3

@ -134,18 +134,18 @@ def command(conf, args):
try: try:
rp.push_paper(p) rp.push_paper(p)
ui.message('added to pubs:\n{}'.format(pretty.paper_oneliner(p)))
if docfile is not None: if docfile is not None:
rp.push_doc(p.citekey, docfile, copy=copy or args.move) rp.push_doc(p.citekey, docfile, copy=copy or args.move)
if copy: if copy:
if move: if move:
content.remove_file(docfile) content.remove_file(docfile)
ui.message('added to pubs:\n{}'.format(pretty.paper_oneliner(p))) if copy:
if copy: if move:
if move: ui.message('{} was moved to the pubs repository.'.format(docfile))
ui.message('{} was moved to the pubs repository.'.format(docfile)) else:
else: ui.message('{} was copied to the pubs repository.'.format(docfile))
ui.message('{} was copied to the pubs repository.'.format(docfile))
except ValueError as v: except ValueError as v:
ui.error(v.message) ui.error(v.message)

Loading…
Cancel
Save