The mtime of a directory is kind of useless, so don't use it.
This commit is contained in:
parent
66187e879e
commit
4669903887
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/bin/python
|
||||
import sys, os, errno
|
||||
import sys, os, errno, stat
|
||||
import vars, state, builder, jwack
|
||||
from helpers import debug, debug2, err, mkdirp, unlink
|
||||
|
||||
|
|
@ -25,7 +25,7 @@ def dirty_deps(t, depth):
|
|||
debug('%s-- DIRTY (no stamp)\n' % depth)
|
||||
return True
|
||||
|
||||
if stamptime != realtime:
|
||||
if stamptime != realtime and not (st and stat.S_ISDIR(st.st_mode)):
|
||||
debug('%s-- DIRTY (mtime)\n' % depth)
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue