ghc-pkg: Consider .conf files when computing package db mtime
authorAndrzej Rybczak <electricityispower@gmail.com>
Tue, 7 Mar 2017 14:55:02 +0000 (09:55 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 7 Mar 2017 18:32:33 +0000 (13:32 -0500)
commit30d69f404ba102da94423836f86fbec2fb4adaf9
tree3338d5a1baa6c99eb457d69ac17a4676eafb7d26
parentecb880caea441b6dd7f75a555546e55abe11c233
ghc-pkg: Consider .conf files when computing package db mtime

We can no longer use the mtime of the containing directory since it now
contains a lock file in addition to the .cache and .conf files.

Fixes #13375.

Test Plan: Validate on Windows

Reviewers: austin, arybczak

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3289
utils/ghc-pkg/Main.hs