summaryrefslogtreecommitdiff
path: root/BackendList.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-02 13:47:45 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-02 13:47:45 -0400
commita3daac8a8b06bbe2f35ca16cc1b27e21cad8a0e1 (patch)
treeea6bc56c9a70014279c83e1d440476a2c032d1a9 /BackendList.hs
parent70a6eb6d73b3e302b9b9c02342581fada25dcad9 (diff)
only enable SHA backends that configure finds support for
Diffstat (limited to 'BackendList.hs')
-rw-r--r--BackendList.hs18
1 files changed, 5 insertions, 13 deletions
diff --git a/BackendList.hs b/BackendList.hs
index 4279b69fc..bc3fd8314 100644
--- a/BackendList.hs
+++ b/BackendList.hs
@@ -9,21 +9,13 @@ module BackendList (allBackends) where
-- When adding a new backend, import it here and add it to the list.
import qualified Backend.WORM
-import qualified Backend.SHA1
-import qualified Backend.SHA256
-import qualified Backend.SHA512
-import qualified Backend.SHA224
-import qualified Backend.SHA384
+import qualified Backend.SHA
import qualified Backend.URL
import Types
allBackends :: [Backend Annex]
-allBackends =
- [ Backend.WORM.backend
- , Backend.SHA1.backend
- , Backend.SHA256.backend
- , Backend.SHA512.backend
- , Backend.SHA224.backend
- , Backend.SHA384.backend
- , Backend.URL.backend
+allBackends = concat
+ [ Backend.WORM.backends
+ , Backend.SHA.backends
+ , Backend.URL.backends
]