You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2012/10/27 19:43:04 UTC

svn commit: r1402829 - in /lucene/dev/branches/branch_4x: ./ dev-tools/ dev-tools/scripts/smokeTestRelease.py

Author: mikemccand
Date: Sat Oct 27 17:43:04 2012
New Revision: 1402829

URL: http://svn.apache.org/viewvc?rev=1402829&view=rev
Log:
use os.path.exists instead of os.access

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/dev-tools/   (props changed)
    lucene/dev/branches/branch_4x/dev-tools/scripts/smokeTestRelease.py

Modified: lucene/dev/branches/branch_4x/dev-tools/scripts/smokeTestRelease.py
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/dev-tools/scripts/smokeTestRelease.py?rev=1402829&r1=1402828&r2=1402829&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/dev-tools/scripts/smokeTestRelease.py (original)
+++ lucene/dev/branches/branch_4x/dev-tools/scripts/smokeTestRelease.py Sat Oct 27 17:43:04 2012
@@ -855,7 +855,7 @@ def checkJavadocpathFull(path, failOnMis
     raise RuntimeError('broken javadocs links found!')
 
 def testDemo(isSrc, version, jdk):
-  if (os.access('index', os.F_OK)):
+  if os.path.exists('index'):
     shutil.rmtree('index') # nuke any index from any previous iteration
 
   print('    test demo with %s...' % jdk)