Skip to content
GitLab
Menu
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
26eb1c31
Commit
26eb1c31
authored
Oct 09, 2014
by
Erik de Castro Lopo
Browse files
cabal-install/IndexUtils : Fix display of age now that its days as a Double.
parent
7517b5eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/IndexUtils.hs
View file @
26eb1c31
...
@@ -82,6 +82,7 @@ import System.FilePath.Posix as FilePath.Posix
...
@@ -82,6 +82,7 @@ import System.FilePath.Posix as FilePath.Posix
import
System.IO
import
System.IO
import
System.IO.Unsafe
(
unsafeInterleaveIO
)
import
System.IO.Unsafe
(
unsafeInterleaveIO
)
import
System.IO.Error
(
isDoesNotExistError
)
import
System.IO.Error
(
isDoesNotExistError
)
import
Numeric
(
showFFloat
)
getInstalledPackages
::
Verbosity
->
Compiler
getInstalledPackages
::
Verbosity
->
Compiler
...
@@ -219,7 +220,7 @@ readRepoIndex verbosity repo mode =
...
@@ -219,7 +220,7 @@ readRepoIndex verbosity repo mode =
when
(
dt
>=
isOldThreshold
)
$
case
repoKind
repo
of
when
(
dt
>=
isOldThreshold
)
$
case
repoKind
repo
of
Left
remoteRepo
->
warn
verbosity
$
Left
remoteRepo
->
warn
verbosity
$
"The package list for '"
++
remoteRepoName
remoteRepo
"The package list for '"
++
remoteRepoName
remoteRepo
++
"' is "
++
show
dt
++
" days old.
\n
Run "
++
"' is "
++
show
FFloat
(
Just
1
)
dt
" days old.
\n
Run "
++
"'cabal update' to get the latest list of available packages."
++
"'cabal update' to get the latest list of available packages."
Right
_localRepo
->
return
()
Right
_localRepo
->
return
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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