It's okay if a file is marked as generated and doesn't have a .do.
If we don't know how to rebuild the file, but it already exists, that's pretty harmless. Just consider it a successful rebuild.
This commit is contained in:
parent
77eacf1423
commit
190dd657d8
1 changed files with 5 additions and 2 deletions
|
|
@ -69,8 +69,11 @@ class BuildJob:
|
|||
state.start(t)
|
||||
(dofile, basename, ext) = _find_do_file(t)
|
||||
if not dofile:
|
||||
err('no rule to make %r\n' % t)
|
||||
return self._after2(1)
|
||||
if os.path.exists(t):
|
||||
return self._after2(0)
|
||||
else:
|
||||
err('no rule to make %r\n' % t)
|
||||
return self._after2(1)
|
||||
state.stamp(dofile)
|
||||
unlink(tmpname)
|
||||
ffd = os.open(tmpname, os.O_CREAT|os.O_RDWR|os.O_EXCL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue