]> dgit.raspbian.org Git - git-annex.git/commitdiff
BitTorrent: Fix build for "no torrent" code path
authorKyle Meyer <kyle@kyleam.com>
Thu, 19 Nov 2020 17:14:22 +0000 (12:14 -0500)
committerJoey Hess <joeyh@joeyh.name>
Thu, 19 Nov 2020 18:46:21 +0000 (14:46 -0400)
The RawFilePath conversions missed a spot in the else arm of "#ifdef
WITH_TORRENTPARSER".

Remote/BitTorrent.hs

index 5280c872f699f780d6ee0c973337573b81d1bc23..ce19e7e1887ec7c4d74e252cdd7e5cf19bfb3fd0 100644 (file)
@@ -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)"