haddock/hscolour: fix highlighted source location
When generating haddocks with the `--for-hackage` switch, the generated haddocks are placed in a different directory than the normal ones, which includes the package id instead of just the package name. When we ran hscolour, we didn't respect this, so the highlighted source would not be placed in the correct directory and thus was missing from the tarball. This patch fixes that. Fixes #3451
Showing
- Cabal/Distribution/Simple/BuildPaths.hs 12 additions, 5 deletionsCabal/Distribution/Simple/BuildPaths.hs
- Cabal/Distribution/Simple/Haddock.hs 17 additions, 18 deletionsCabal/Distribution/Simple/Haddock.hs
- Cabal/Distribution/Simple/Install.hs 6 additions, 5 deletionsCabal/Distribution/Simple/Install.hs
- Cabal/Distribution/Simple/Setup.hs 18 additions, 3 deletionsCabal/Distribution/Simple/Setup.hs
- cabal-install/Main.hs 4 additions, 3 deletionscabal-install/Main.hs
Loading
Please register or sign in to comment