From 9e09dcb2cff16ef1256f1a56c3a5e92bc598c2c1 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Thu, 19 Nov 2020 12:14:22 -0500 Subject: [PATCH] BitTorrent: Fix build for "no torrent" code path The RawFilePath conversions missed a spot in the else arm of "#ifdef WITH_TORRENTPARSER". --- Remote/BitTorrent.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Remote/BitTorrent.hs b/Remote/BitTorrent.hs index 5280c872f6..ce19e7e188 100644 --- a/Remote/BitTorrent.hs +++ b/Remote/BitTorrent.hs @@ -382,7 +382,7 @@ torrentFileSizes torrent = do (d:[]) -> return $ map (splitsize d) files _ -> parsefailed (show v) where - getfield = btshowmetainfo torrent + getfield = btshowmetainfo (fromRawFilePath torrent) parsefailed s = giveup $ "failed to parse btshowmetainfo output for torrent file: " ++ show s -- btshowmetainfo outputs a list of "filename (size)" -- 2.30.2