fix build with xml-conduit newer than in debian
The Element data type changed to use a map of attributes. Rather than ifdef, I'm avoiding directly using that data type.
This commit is contained in:
parent
8730c551ff
commit
8a6941a216
1 changed files with 2 additions and 3 deletions
|
@ -15,6 +15,7 @@ import qualified Data.ByteString.UTF8 as B8
|
|||
import qualified Data.ByteString.Lazy.UTF8 as L8
|
||||
import qualified Data.ByteString.Lazy as L
|
||||
import qualified Data.Text as T
|
||||
import qualified Data.Text.Lazy as LT
|
||||
import qualified Text.XML as XML
|
||||
import Network.URI (normalizePathSegments)
|
||||
import qualified Control.Exception as E
|
||||
|
@ -307,9 +308,7 @@ contentType = Just $ B8.fromString "application/octet-stream"
|
|||
{- The DAV library requires that properties be specified when storing a file.
|
||||
- This just omits any real properties. -}
|
||||
noProps :: XML.Document
|
||||
noProps = XML.Document (XML.Prologue [] Nothing []) root []
|
||||
where
|
||||
root = XML.Element (XML.Name (T.pack "propertyupdate") Nothing Nothing) [] []
|
||||
noProps = XML.parseText_ XML.def $ LT.pack "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<propertyupdate/>"
|
||||
|
||||
getCreds :: RemoteConfig -> UUID -> Annex (Maybe CredPair)
|
||||
getCreds c u = maybe missing (return . Just) =<< getRemoteCredPair c creds
|
||||
|
|
Loading…
Add table
Reference in a new issue