diff options
| author | Joey Hess <joey@kitenet.net> | 2014-05-10 10:46:36 -0300 |
|---|---|---|
| committer | Joey Hess <joey@kitenet.net> | 2014-05-10 10:46:36 -0300 |
| commit | dd0e3495cc6bf05eee99ecd437ad67bf5f4842c0 (patch) | |
| tree | bb98422e69b5933bf3da74b142c87aba549ce86d /Utility/LinuxMkLibs.hs | |
| parent | c2375ae087903fb2c956eb046adf857b6b2f4ae2 (diff) | |
merge from git-annex
Diffstat (limited to 'Utility/LinuxMkLibs.hs')
| -rw-r--r-- | Utility/LinuxMkLibs.hs | 2 |
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) |
