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
e1aad95f
Commit
e1aad95f
authored
Apr 29, 2013
by
refold
Browse files
Revert the timestamp checks back to (>=) from (>).
parent
81d07bf2
Changes
2
Hide whitespace changes
Inline
Side-by-side
cabal-install/Distribution/Client/IndexUtils.hs
View file @
e1aad95f
...
...
@@ -240,8 +240,7 @@ whenCacheOutOfDate origFile cacheFile action = do
else
do
origTime
<-
getModificationTime
origFile
cacheTime
<-
getModificationTime
cacheFile
-- FIXME: Revert back to >= when we'll add finer-resolution mtime utils.
unless
(
cacheTime
>
origTime
)
action
unless
(
cacheTime
>=
origTime
)
action
------------------------------------------------------------------------
...
...
cabal-install/Distribution/Client/Sandbox/Timestamp.hs
View file @
e1aad95f
...
...
@@ -269,8 +269,7 @@ isDepModified verbosity now (packageDir, timestamp) = do
when
(
modTime
>
now
)
$
warn
verbosity
$
"File '"
++
dep
++
"' has a modification time that is in the future."
-- FIXME: Revert back to >= when we'll add finer-resolution mtime utils.
if
modTime
>
timestamp
if
modTime
>=
timestamp
then
do
debug
verbosity
(
"Dependency has a modified source file: "
++
dep
)
return
True
...
...
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