[Python-checkins] r43334 - peps/trunk/pep2pyramid.py
anthony.baxter
python-checkins at python.org
Mon Mar 27 07:46:55 CEST 2006
Author: anthony.baxter
Date: Mon Mar 27 07:46:54 2006
New Revision: 43334
Modified:
peps/trunk/pep2pyramid.py
Log:
skip pyramid generation if output is up-to-date.
Modified: peps/trunk/pep2pyramid.py
==============================================================================
--- peps/trunk/pep2pyramid.py (original)
+++ peps/trunk/pep2pyramid.py Mon Mar 27 07:46:54 2006
@@ -361,6 +361,11 @@
return None
destDir, needSvn, pepnum = set_up_pyramid(inpath)
outpath = os.path.join(destDir, 'body.html')
+ if (os.path.exists(outpath) and
+ os.stat(inpath).st_mtime <= os.stat(outpath).st_mtime):
+ if verbose:
+ print "Skipping %s (outfile up to date)"%(inpath)
+ return
if verbose:
print inpath, "(%s)" % pep_type, "->", outpath
sys.stdout.flush()
More information about the Python-checkins
mailing list