Back-fill core packages for homebrew users #68

This commit is contained in:
Michael Snoyman 2014-12-23 10:41:24 +02:00
parent f0a8848456
commit 9b3425d3e3
2 changed files with 13 additions and 7 deletions

View File

@ -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"
]

View File

@ -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 #