summaryrefslogtreecommitdiff
path: root/Utility/LinuxMkLibs.hs
diff options
context:
space:
mode:
authorJoey Hess2014-05-10 10:46:36 -0300
committerJoey Hess2014-05-10 10:46:36 -0300
commitdd0e3495cc6bf05eee99ecd437ad67bf5f4842c0 (patch)
treebb98422e69b5933bf3da74b142c87aba549ce86d /Utility/LinuxMkLibs.hs
parentc2375ae087903fb2c956eb046adf857b6b2f4ae2 (diff)
merge from git-annex
Diffstat (limited to 'Utility/LinuxMkLibs.hs')
-rw-r--r--Utility/LinuxMkLibs.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utility/LinuxMkLibs.hs b/Utility/LinuxMkLibs.hs
index 76e6266d..f4744fcb 100644
--- a/Utility/LinuxMkLibs.hs
+++ b/Utility/LinuxMkLibs.hs
@@ -49,7 +49,7 @@ inTop top f = top ++ f
- link to. Note that some of the libraries may not exist
- (eg, linux-vdso.so) -}
parseLdd :: String -> [FilePath]
-parseLdd = catMaybes . map (getlib . dropWhile isSpace) . lines
+parseLdd = mapMaybe (getlib . dropWhile isSpace) . lines
where
getlib l = headMaybe . words =<< lastMaybe (split " => " l)