remove workaround for old versions of process
ghc 8.4.4 has process 1.6.3, which was the first version to include getPid.
This commit is contained in:
parent
92f775eba0
commit
c429bbf2bd
2 changed files with 4 additions and 7 deletions
|
@ -29,7 +29,6 @@ import qualified P2P.Annex as P2P
|
||||||
import Control.Concurrent.STM
|
import Control.Concurrent.STM
|
||||||
import Control.Concurrent.Async
|
import Control.Concurrent.Async
|
||||||
import qualified Data.ByteString as B
|
import qualified Data.ByteString as B
|
||||||
import Data.Unique
|
|
||||||
|
|
||||||
toRepo :: ConsumeStdin -> Git.Repo -> RemoteGitConfig -> SshCommand -> Annex (FilePath, [CommandParam])
|
toRepo :: ConsumeStdin -> Git.Repo -> RemoteGitConfig -> SshCommand -> Annex (FilePath, [CommandParam])
|
||||||
toRepo cs r gc remotecmd = do
|
toRepo cs r gc remotecmd = do
|
||||||
|
@ -262,16 +261,14 @@ openP2PSshConnection r connpool = do
|
||||||
, std_out = CreatePipe
|
, std_out = CreatePipe
|
||||||
, std_err = CreatePipe
|
, std_err = CreatePipe
|
||||||
}
|
}
|
||||||
-- Could use getPid, but need to build with older versions
|
pidnum <- getPid pid
|
||||||
-- of process, so instead a unique connection number.
|
|
||||||
connnum <- hashUnique <$> newUnique
|
|
||||||
let conn = P2P.P2PConnection
|
let conn = P2P.P2PConnection
|
||||||
{ P2P.connRepo = repo
|
{ P2P.connRepo = repo
|
||||||
, P2P.connCheckAuth = const False
|
, P2P.connCheckAuth = const False
|
||||||
, P2P.connIhdl = to
|
, P2P.connIhdl = to
|
||||||
, P2P.connOhdl = from
|
, P2P.connOhdl = from
|
||||||
, P2P.connIdent = P2P.ConnIdent $
|
, P2P.connIdent = P2P.ConnIdent $
|
||||||
Just $ "ssh connection " ++ show connnum
|
Just $ "ssh connection " ++ show pidnum
|
||||||
}
|
}
|
||||||
stderrhandlerst <- newStderrHandler err
|
stderrhandlerst <- newStderrHandler err
|
||||||
runst <- P2P.mkRunState P2P.Client
|
runst <- P2P.mkRunState P2P.Client
|
||||||
|
|
|
@ -297,7 +297,7 @@ custom-setup
|
||||||
Setup-Depends: base (>= 4.11.1.0), hslogger, split, unix-compat,
|
Setup-Depends: base (>= 4.11.1.0), hslogger, split, unix-compat,
|
||||||
filepath, exceptions, bytestring, directory, IfElse, data-default,
|
filepath, exceptions, bytestring, directory, IfElse, data-default,
|
||||||
filepath-bytestring (>= 1.4.2.1.1),
|
filepath-bytestring (>= 1.4.2.1.1),
|
||||||
process (>= 1.6),
|
process (>= 1.6.3),
|
||||||
utf8-string, transformers, Cabal
|
utf8-string, transformers, Cabal
|
||||||
|
|
||||||
Executable git-annex
|
Executable git-annex
|
||||||
|
@ -311,7 +311,7 @@ Executable git-annex
|
||||||
stm (>= 2.3),
|
stm (>= 2.3),
|
||||||
mtl (>= 2),
|
mtl (>= 2),
|
||||||
uuid (>= 1.2.6),
|
uuid (>= 1.2.6),
|
||||||
process (>= 1.6),
|
process (>= 1.6.3),
|
||||||
data-default,
|
data-default,
|
||||||
case-insensitive,
|
case-insensitive,
|
||||||
random,
|
random,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue