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:
Avery Pennarun 2010-11-24 02:18:19 -08:00
commit 190dd657d8

View file

@ -69,8 +69,11 @@ class BuildJob:
state.start(t) state.start(t)
(dofile, basename, ext) = _find_do_file(t) (dofile, basename, ext) = _find_do_file(t)
if not dofile: if not dofile:
err('no rule to make %r\n' % t) if os.path.exists(t):
return self._after2(1) return self._after2(0)
else:
err('no rule to make %r\n' % t)
return self._after2(1)
state.stamp(dofile) state.stamp(dofile)
unlink(tmpname) unlink(tmpname)
ffd = os.open(tmpname, os.O_CREAT|os.O_RDWR|os.O_EXCL) ffd = os.open(tmpname, os.O_CREAT|os.O_RDWR|os.O_EXCL)