improve warning
authorJoey Hess <joeyh@joeyh.name>
Tue, 3 Nov 2015 15:06:33 +0000 (11:06 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 3 Nov 2015 15:06:33 +0000 (11:06 -0400)
Setup.hs

index 44816774ad604420bcf0fa188adde4160845eeb4..0684674b3fb3ac125c3c28c5529ba3f71956f07d 100644 (file)
--- a/Setup.hs
+++ b/Setup.hs
@@ -65,11 +65,10 @@ installManpages copyDest verbosity pkg lbi =
 installDesktopFile :: CopyDest -> Verbosity -> PackageDescription -> LocalBuildInfo -> IO ()
 installDesktopFile copyDest _verbosity pkg lbi
        | progfile copyDest == progfile NoCopyDest =
-               let dest = progfile copyDest
-               in DesktopFile.installUser dest
-                       `catch` installerror dest
+               DesktopFile.installUser (progfile copyDest)
+                       `catch` installerror
        | otherwise = return ()
   where
        progfile cd = bindir (absoluteInstallDirs pkg lbi cd) </> "git-annex"
-       installerror :: FilePath -> SomeException -> IO ()
-       installerror dest e = putStrLn ("installation of desktop intrgration files in " ++ dest ++ " did not succeed (" ++ show e ++ "); skipping (set DESTDIR to install these files to a different location)")
+       installerror :: SomeException -> IO ()
+       installerror e = putStrLn ("Warning: Installation of desktop integration files did not succeed (" ++ show e ++ "); skipping.")