Test that uuid -m works, falling back to plain uuid if not.

This commit is contained in:
Joey Hess 2012-09-25 10:48:20 -04:00
parent bbe1f86325
commit bc83179a76
3 changed files with 3 additions and 7 deletions

View file

@ -36,12 +36,7 @@ genUUID = gen . lines <$> readProcess command params
where
gen [] = error $ "no output from " ++ command
gen (l:_) = toUUID l
command = SysConfig.uuid
params
-- request a random uuid be generated
| command == "uuid" = ["-m"]
-- uuidgen generates random uuid by default
| otherwise = []
(command:params) = words SysConfig.uuid
{- Get current repository's UUID. -}
getUUID :: Annex UUID