git-annex/Remote/S3stub.hs
Joey Hess 9c96d86502 nasty hack to build when hS3 is not available
So, it would be nicer to just use Cabal and take advantage
of its conditional compilation support. But, Cabal seems to
lack good support for a package with an internal library that is used by
multiple executables. It wants to build everything twice or more.
That's too slow for me.

Anyway, fairly soon, I expect to upgrade hS3 to a requirment, and I
can just revert this.
2011-03-30 01:32:05 -04:00

13 lines
265 B
Haskell

-- stub for when hS3 is not available
module Remote.S3 (remote) where
import RemoteClass
import Types
remote :: RemoteType Annex
remote = RemoteType {
typename = "S3",
enumerate = return [],
generate = error "S3 not enabled",
setup = error "S3 not enabled"
}