Probe for quvi version at run time.

Overhead: git annex addurl runs quvi --version once.
And more bloat to Annex state..
This commit is contained in:
Joey Hess 2014-02-28 14:54:02 -04:00
parent 9ec1441a94
commit 7ac37a7854
8 changed files with 80 additions and 43 deletions

View file

@ -64,7 +64,7 @@ start relaxed optfile pathdepth s = go $ fromMaybe bad $ parseURI s
QuviDownloader -> usequvi
DefaultDownloader ->
#ifdef WITH_QUVI
ifM (liftIO $ Quvi.supported s')
ifM (quviSupported s')
( usequvi
, regulardownload url
)