Fix missing "Latest on Hackage" for packages from global-hints

This commit is contained in:
Alexey Kuleshevich 2019-06-26 12:21:01 +03:00
parent d9a285a87f
commit 78b019a915
No known key found for this signature in database
GPG Key ID: E59B216127119E3E

View File

@ -440,10 +440,8 @@ getSnapshotPackagePageInfo ::
GetStackageDatabase env m => SnapshotPackageInfo -> Int -> m SnapshotPackagePageInfo
getSnapshotPackagePageInfo spi maxDisplayedDeps =
run $ do
mhciLatest <-
case spiOrigin spi of
Hackage -> getHackageLatestVersion $ spiPackageName spi
_ -> pure Nothing
mhciLatest <- getHackageLatestVersion $ spiPackageName spi
-- TODO: check for `spiOrigin spi` once other than `Hackage` are implemented
forwardDepsCount <- getForwardDepsCount spi
reverseDepsCount <- getReverseDepsCount spi
forwardDeps <-