From 477a5549e28104d88065690ce1fa03d9fabef726 Mon Sep 17 00:00:00 2001 From: Mohit Agarwal Date: Tue, 2 Aug 2016 09:38:14 +0530 Subject: [PATCH] ensure appropriate permissions for manpage Fixes #3653 --- cabal-install/Setup.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cabal-install/Setup.hs b/cabal-install/Setup.hs index 8cf1d23b6a5..3f1202f6498 100644 --- a/cabal-install/Setup.hs +++ b/cabal-install/Setup.hs @@ -11,7 +11,7 @@ import Distribution.Simple.InstallDirs ( mandir import Distribution.Simple.LocalBuildInfo ( LocalBuildInfo(..) , absoluteInstallDirs ) -import Distribution.Simple.Utils ( copyFiles +import Distribution.Simple.Utils ( installOrdinaryFiles , notice ) import Distribution.Simple.Setup ( buildVerbosity , copyDest @@ -60,4 +60,4 @@ buildManpage lbi verbosity = do installManpage :: PackageDescription -> LocalBuildInfo -> Verbosity -> CopyDest -> IO () installManpage pkg lbi verbosity copy = do let destDir = mandir (absoluteInstallDirs pkg lbi copy) "man1" - copyFiles verbosity destDir [(buildDir lbi "cabal", "cabal.1")] + installOrdinaryFiles verbosity destDir [(buildDir lbi "cabal", "cabal.1")]