summaryrefslogtreecommitdiff
path: root/Command/Status.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-11-15 00:33:54 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-11-15 00:33:54 -0400
commitdef0788698f9ed29856aa5b608356ae7b298e3f8 (patch)
tree1ce5940b3111ff40fca71045af1624298a3722c8 /Command/Status.hs
parent019373f827309e4f4a1cf694a50270142e26aa6e (diff)
show number of repos
Diffstat (limited to 'Command/Status.hs')
-rw-r--r--Command/Status.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Command/Status.hs b/Command/Status.hs
index 4f7529732..2c0afa62c 100644
--- a/Command/Status.hs
+++ b/Command/Status.hs
@@ -103,8 +103,9 @@ supported_remote_types = stat "supported remote types" $
remote_list :: TrustLevel -> String -> Stat
remote_list level desc = stat n $ lift $ do
us <- M.keys <$> uuidMap
- s <- prettyPrintUUIDs n =<< fst <$> trustPartition level us
- return $ if null s then "none" else '\n':init s
+ rs <- fst <$> trustPartition level us
+ s <- prettyPrintUUIDs n rs
+ return $ if null s then "0" else show (length rs) ++ "\n" ++ init s
where
n = desc ++ " repositories"