Skip to content

Commit

Permalink
Makes runs section more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Apr 22, 2015
1 parent 5d07ed1 commit 1491f6d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions reprounzip/reprounzip/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,14 @@ def save_config(filename, runs, packages, other_files, reprozip_version,
"edit it" if canonical
else "# You might want to edit this file before running the "
"packer\n# See 'reprozip pack -h' for help")))
fp.write(dump({'runs': runs}).decode('utf-8'))
fp.write("""\

fp.write("runs:\n")
for i, run in enumerate(runs):
fp.write("# Run %d\n" % i)
fp.write(dump([run]).decode('utf-8'))
fp.write("\n")

fp.write("""\
# Files to pack
# All the files below were used by the program; they will be included in the
# generated package
Expand Down
9 changes: 7 additions & 2 deletions reprozip/reprozip/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,14 @@ def save_config(filename, runs, packages, other_files, reprozip_version,
"edit it" if canonical
else "# You might want to edit this file before running the "
"packer\n# See 'reprozip pack -h' for help")))
fp.write(dump({'runs': runs}).decode('utf-8'))
fp.write("""\

fp.write("runs:\n")
for i, run in enumerate(runs):
fp.write("# Run %d\n" % i)
fp.write(dump([run]).decode('utf-8'))
fp.write("\n")

fp.write("""\
# Files to pack
# All the files below were used by the program; they will be included in the
# generated package
Expand Down

0 comments on commit 1491f6d

Please sign in to comment.