summaryrefslogtreecommitdiff
path: root/Remote.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-03-29 18:28:37 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-03-29 18:28:37 -0400
commit8f9951369d5e85e3a1bf323760f0c873a3f21b97 (patch)
tree150c2124fb56da9ac4770aa75839945774d77c30 /Remote.hs
parent43bdebbc2d2c22623a0114dca51b8339bf7231c4 (diff)
refactor
Diffstat (limited to 'Remote.hs')
-rw-r--r--Remote.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/Remote.hs b/Remote.hs
index 9fd53a2f2..914c69abe 100644
--- a/Remote.hs
+++ b/Remote.hs
@@ -29,7 +29,7 @@ module Remote (
) where
import Control.Monad.State (liftIO)
-import Control.Monad (when, liftM)
+import Control.Monad (when, liftM, filterM)
import Data.List
import qualified Data.Map as M
import Data.Maybe
@@ -42,6 +42,7 @@ import Trust
import LocationLog
import Locations
import Utility
+import Config
import qualified Remote.Git
import qualified Remote.S3
@@ -68,7 +69,8 @@ genList = do
where
process m t = do
l <- enumerate t
- mapM (gen m t) l
+ l' <- filterM remoteNotIgnored l
+ mapM (gen m t) l'
gen m t r = do
u <- getUUID r
generate t r (M.lookup u m)