Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
0a5c5b6f
Commit
0a5c5b6f
authored
Jun 03, 2008
by
Duncan Coutts
Browse files
Don't include the default repo when loading the config file
So we don't end up downloading the index from hackage twice.
parent
0b800905
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Hackage/Config.hs
View file @
0a5c5b6f
...
...
@@ -163,7 +163,7 @@ loadConfig verbosity configFile =
notice
verbosity
$
"Writing default configuration to "
++
configFile
writeDefaultConfigFile
configFile
defaultConf
return
defaultConf
Just
inp
->
case
parseBasicStanza
configFieldDescrs
defaultConf
inp
of
Just
inp
->
case
parseBasicStanza
configFieldDescrs
defaultConf
'
inp
of
ParseOk
ws
conf
->
do
when
(
not
$
null
ws
)
$
warn
verbosity
$
unlines
(
map
(
showPWarning
configFile
)
ws
)
...
...
@@ -173,6 +173,7 @@ loadConfig verbosity configFile =
++
configFile
++
": "
++
showPError
err
warn
verbosity
$
"Using default configuration."
return
defaultConf
where
defaultConf'
=
defaultConf
{
configRemoteRepos
=
[]
}
writeDefaultConfigFile
::
FilePath
->
SavedConfig
->
IO
()
writeDefaultConfigFile
file
cfg
=
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment