Added bittorrent special remote

addurl behavior change: When downloading an url ending in .torrent,
it will download files from bittorrent, instead of the old behavior
of adding the torrent file to the repository.

Added Recommends on aria2 and bittornado | bittorrent.

This commit was sponsored by Asbjørn Sloth Tønnesen.
This commit is contained in:
Joey Hess 2014-12-16 23:22:46 -04:00
parent 386880a763
commit a7690de016
12 changed files with 404 additions and 7 deletions

View file

@ -8,6 +8,7 @@
module Logs.Trust.Basic (
module X,
trustSet,
trustMapRaw,
) where
import Data.Time.Clock.POSIX
@ -30,3 +31,8 @@ trustSet uuid@(UUID _) level = do
parseLog (Just . parseTrustLog)
Annex.changeState $ \s -> s { Annex.trustmap = Nothing }
trustSet NoUUID _ = error "unknown UUID; cannot modify"
{- Does not include forcetrust or git config values, just those from the
- log file. -}
trustMapRaw :: Annex TrustMap
trustMapRaw = calcTrustMap <$> Annex.Branch.get trustLog