diff options
Diffstat (limited to 'src/Propellor/Property/Debootstrap.hs')
| -rw-r--r-- | src/Propellor/Property/Debootstrap.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Propellor/Property/Debootstrap.hs b/src/Propellor/Property/Debootstrap.hs index a46451ef..74da68b4 100644 --- a/src/Propellor/Property/Debootstrap.hs +++ b/src/Propellor/Property/Debootstrap.hs @@ -158,10 +158,10 @@ sourceInstall' = withTmpDir "debootstrap" $ \tmpd -> do let indexfile = tmpd </> "index.html" unlessM (download baseurl indexfile) $ errorMessage $ "Failed to download " ++ baseurl - urls <- reverse . sort -- highest version first + urls <- (sortBy (flip compare) -- highest version first . filter ("debootstrap_" `isInfixOf`) . filter (".tar." `isInfixOf`) - . extractUrls baseurl <$> + . extractUrls baseurl) <$> readFileStrictAnyEncoding indexfile nukeFile indexfile |
