Skip to content

Commit

Permalink
Numbers runs in 'reprounzip info' output
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Feb 17, 2015
1 parent 1d39873 commit 92a517b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions reprounzip/reprounzip/pack_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,12 @@ def print_info(args):
print("Distribution: %s (current: %s)" % (
meta_distribution, current_distribution or "(not Linux)"))
print("Executions (%d):" % len(runs))
for r in runs:
print(" %s" % ' '.join(shell_escape(a) for a in r['argv']))
for i, r in enumerate(runs):
cmdline = ' '.join(shell_escape(a) for a in r['argv'])
if len(runs) > 1:
print(" %d: %s" % (i, cmdline))
else:
print(" %s" % cmdline)
if args.verbosity >= 2:
print(" input files: %s" %
", ".join(r['input_files']))
Expand Down

0 comments on commit 92a517b

Please sign in to comment.