From cbea2ca5698654bb29b7dc8b10da39714a203a9b Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Sun, 7 Jun 2020 23:51:54 +0300 Subject: [PATCH] Fix sdist of packages with data-files --- Cabal/Distribution/Simple/SrcDist.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cabal/Distribution/Simple/SrcDist.hs b/Cabal/Distribution/Simple/SrcDist.hs index 87652903d57..e0add009c67 100644 --- a/Cabal/Distribution/Simple/SrcDist.hs +++ b/Cabal/Distribution/Simple/SrcDist.hs @@ -223,7 +223,7 @@ listPackageSources' verbosity rip cwd pkg_descr pps = srcDataDir = if null srcDataDirRaw then "." else srcDataDirRaw - in fmap (fmap (\p -> cwd srcDataDir p)) $ + in fmap (fmap (\p -> srcDataDir p)) $ matchDirFileGlob verbosity (specVersion pkg_descr) srcDataDir filename -- Extra source files.