[pkg-haskell-tools] 04/05: make-all: Avoid rebuliding everything just because the list of packages changed
Joachim Breitner
nomeata at moszumanska.debian.org
Fri Aug 14 09:03:21 UTC 2015
This is an automated email from the git hooks/post-receive script.
nomeata pushed a commit to branch master
in repository pkg-haskell-tools.
commit dd7dafc0a2ffb01f3f81906a09f34d30005ea4a3
Author: Joachim Breitner <mail at joachim-breitner.de>
Date: Fri Aug 14 10:30:17 2015 +0200
make-all: Avoid rebuliding everything just because the list of packages changed
---
src/make-all.hs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/make-all.hs b/src/make-all.hs
index 9b833e9..1e57bce 100644
--- a/src/make-all.hs
+++ b/src/make-all.hs
@@ -371,7 +371,9 @@ shakeMain conf@(Conf {..}) = do
-- What files do we have built locally?
-- Make sure the build uses only them
- expectedDeps <- S.fromList <$> readFileLines (targetDir </> "cache" </> "all-binaries.txt")
+ -- Do not use readFileLines or readFile', lest we rebuild everything
+ -- if the set of packages changes.
+ expectedDeps <- S.fromList . lines <$> liftIO (readFile (targetDir </> "cache" </> "all-binaries.txt"))
localDebs <-
filter (`S.member` expectedDeps) .
map (makeRelative targetDir) <$>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-haskell/pkg-haskell-tools.git
More information about the Pkg-haskell-commits
mailing list