From def0788698f9ed29856aa5b608356ae7b298e3f8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 15 Nov 2011 00:33:54 -0400 Subject: show number of repos --- Command/Status.hs | 5 +++-- 1 file 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" -- cgit v1.2.3