lp://staging/~rcj/vmbuilder/mfdiff_fixups
- Get this branch:
- bzr branch lp://staging/~rcj/vmbuilder/mfdiff_fixups
Branch merges
- Francis Ginther (community): Approve
- Dan Watkins (community): Approve
-
Diff: 903 lines (+581/-281)2 files modifiedREADME (+9/-10)
mfdiff (+572/-271)
Branch information
Recent revisions
- 48. By Robert C Jennings
-
Copy rather than rename changelog files
We had been renaming changelog temporary files to place them in
the cache directory if we were successful. A prior commit
(r44 Use the current directory for temp changelog files) was meant
to solve a failure to rename between file systems; this fixed the
default usage where the apt cache directory is created in the current
directory. This fix is insufficient if the user uses the --cache_d
commandline argument to specify a path on a filesystem different
from that filesystem for the current directory. This patch changes
the rename to a copy operation to completely resolve this issue. - 47. By Robert C Jennings
-
Force output to UTF-8 at all times
We want to output UTF-8 at all times to preserve Unicode characters
in the changelog blocks. For Python 2 we will wrap sys.stdout with
an instance of StreamWriter with our preferred coding. Python3 requires
no changes.When writing output to the terminal we get the encoding of the
terminal (utf-8 these days). When we redirect or pipe the output of
the program it is generally not possible to know what the input
encoding of the receiving program is, the encoding when redirecting
to a file will be None (Python 2.7) or UTF-8 (Python 3)$ python2.7 -c "import sys; print sys.stdout.
encoding" | cat
None$ python3.4 -c "import sys; print(sys.
stdout. encoding) " | cat
UTF-8Source:
https://wiki.python. org/moin/ PrintFails# print.2C_ write_and_ Unicode_ in_pre- 3.0_Python - 40. By Robert C Jennings
-
Eliminate traceback if binary package has been renamed (no longer in apt cache)
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp://staging/vmbuilder