mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-11 19:58:28 +01:00
Back-fill core packages for homebrew users #68
This commit is contained in:
parent
f0a8848456
commit
9b3425d3e3
@ -226,7 +226,8 @@ makeFoundation useEcho conf = do
|
||||
flip runLoggingT (messageLoggerSource foundation logger) $
|
||||
flip (Database.Persist.runPool dbconf) p $ do
|
||||
runMigration migrateAll
|
||||
checkMigration 1 $ fixSnapSlugs
|
||||
checkMigration 1 fixSnapSlugs
|
||||
checkMigration 2 setCorePackages
|
||||
|
||||
|
||||
let updateDB = lookup "STACKAGE_CABAL_LOADER" env /= Just "0"
|
||||
@ -399,3 +400,14 @@ fixSnapSlugs =
|
||||
case ms of
|
||||
Nothing -> update sid [StackageSlug =. slug]
|
||||
Just _ -> loop (i + 1)
|
||||
|
||||
setCorePackages :: MonadIO m => ReaderT SqlBackend m ()
|
||||
setCorePackages =
|
||||
updateWhere [PackageName' <-. defaultCorePackages] [PackageCore =. True]
|
||||
where
|
||||
defaultCorePackages = map PackageName $ words =<<
|
||||
[ "ghc hoopl bytestring unix haskeline Cabal base time xhtml"
|
||||
, "haskell98 hpc filepath process array integer-gmp bin-package-db"
|
||||
, "containers haskell2010 binary ghc-prim old-time old-locale rts"
|
||||
, "terminfo transformers deepseq pretty template-haskell directory"
|
||||
]
|
||||
|
||||
@ -32,12 +32,6 @@ $newline never
|
||||
<span .number>3
|
||||
<code>cabal install
|
||||
|
||||
<p>
|
||||
<strong>Note: #
|
||||
Homebrew users please see #
|
||||
<a href="https://github.com/fpco/stackage/wiki/Stackage-Server-FAQ#homebrew-users">
|
||||
this page about potential issues.
|
||||
|
||||
<p>
|
||||
<strong>Note: #
|
||||
For a global installation, please use #
|
||||
|
||||
Loading…
Reference in New Issue
Block a user