Permalink
Browse files

Sort ebuilds by version, makes better output

  • Loading branch information...
1 parent 18d74c7 commit 480158e33fb96d67b19b44f45768b8f16bfdf92e @kolmodin kolmodin committed Jul 8, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 P2.hs
View
2 P2.hs
@@ -65,7 +65,7 @@ readPortagePackages portdir packages0 = do
packages <- filterM (doesDirectoryExist . (portdir </>) . show) packages0
ebuild_map0 <- forM packages $ \package -> do
ebuilds <- getPackageVersions package
- return (package, ebuilds)
+ return (package, List.sort ebuilds)
let ebuild_map = filter (not . null . snd) ebuild_map0
return $ Map.fromList ebuild_map

0 comments on commit 480158e

Please sign in to comment.