-
Committer:
Robert C Jennings
-
Date:
2017-06-27 18:01:01 UTC
-
Revision ID:
robert.jennings@canonical.com-20170627180101-ruh37lfe8uk4nby6
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.