From fb04cfd0e6a475137de31d7277e3f43241379682 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 1 Jan 2020 14:27:03 -0400 Subject: [PATCH] fix windows build --- Remote/Rsync/RsyncUrl.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Remote/Rsync/RsyncUrl.hs b/Remote/Rsync/RsyncUrl.hs index dc810dea4d..affa924ef9 100644 --- a/Remote/Rsync/RsyncUrl.hs +++ b/Remote/Rsync/RsyncUrl.hs @@ -43,10 +43,10 @@ mkRsyncUrl o f = rsyncUrl o rsyncEscape o f rsyncUrls :: RsyncOpts -> Key -> [RsyncUrl] rsyncUrls o k = map use dirHashes where - use h = rsyncUrl o fromRawFilePath (hash h) rsyncEscape o (f f) + use h = rsyncUrl o hash h rsyncEscape o (f f) f = fromRawFilePath (keyFile k) #ifndef mingw32_HOST_OS - hash h = h def k + hash h = fromRawFilePath $ h def k #else - hash h = replace "\\" "/" (h def k) + hash h = replace "\\" "/" $ fromRawFilePath $ h def k #endif