[svn r38831] be more careful to not work with svnwc() paths

when checking for mtimes

--HG--
branch : trunk
This commit is contained in:
hpk 2007-02-14 15:07:23 +01:00
parent 79a17fa4ef
commit 05ef2d5832
1 changed files with 3 additions and 0 deletions

View File

@ -98,6 +98,9 @@ def restcheck(path):
def _checkskip(lpath, htmlpath=None):
if not option.forcegen:
lpath = py.path.local(lpath)
if htmlpath is not None:
htmlpath = py.path.local(htmlpath)
if lpath.ext == '.txt':
htmlpath = htmlpath or lpath.new(ext='.html')
if htmlpath.check(file=1) and htmlpath.mtime() >= lpath.mtime():