Fix how the timestamps of add-source packages are updated.
commitfcabd87406effc0c265312eb38509804682e4623
authorDave Laing <dave.laing.80@gmail.com>
Mon, 11 Dec 2017 02:10:30 +0000 (11 12:10 +1000)
committerMikhail Glushenkov <mikhail.glushenkov@gmail.com>
Tue, 19 Dec 2017 17:54:27 +0000 (19 18:54 +0100)
tree301411a514dc945bf6a51000daab0dadf104558c
parentc38e36b89fc9d065bda867e325394abbee284a68
Fix how the timestamps of add-source packages are updated.

This is to address #1375.

Previously they were updated in the post install phase, which
would mean that the sources did not have their timestamps
updated unless the package being installed completed successfully.

This change moves the updating of the timestamps to the end of
the install phase, so that the add-source packages that are
successfully installed get their timestamps updated regardless of
the overall outcome of the installation.
cabal-install/Distribution/Client/Install.hs
cabal-install/changelog