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
b853a3eb
Commit
b853a3eb
authored
May 01, 2013
by
refold
Committed by
Mikhail Glushenkov
May 02, 2013
Browse files
Fix the 'index.cache' timestamp check.
Since we're using 'unless' here, we should use (>) instead of (>=).
parent
ba679d5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/IndexUtils.hs
View file @
b853a3eb
...
@@ -240,7 +240,7 @@ whenCacheOutOfDate origFile cacheFile action = do
...
@@ -240,7 +240,7 @@ whenCacheOutOfDate origFile cacheFile action = do
else
do
else
do
origTime
<-
getModificationTime
origFile
origTime
<-
getModificationTime
origFile
cacheTime
<-
getModificationTime
cacheFile
cacheTime
<-
getModificationTime
cacheFile
unless
(
cacheTime
>
=
origTime
)
action
unless
(
cacheTime
>
origTime
)
action
------------------------------------------------------------------------
------------------------------------------------------------------------
...
...
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