summaryrefslogtreecommitdiff
path: root/java/config/IceGridAdmin.py
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2006-06-14 17:45:39 +0000
committerMatthew Newhook <matthew@zeroc.com>2006-06-14 17:45:39 +0000
commite15a4b7862cd7ecd1c14fb78155256d0856f4ba7 (patch)
treec87937ee2f0761c9037b5234248c6423d24a5234 /java/config/IceGridAdmin.py
parentimplemented VerifyDepthMax in Java, C# (diff)
downloadice-e15a4b7862cd7ecd1c14fb78155256d0856f4ba7.tar.bz2
ice-e15a4b7862cd7ecd1c14fb78155256d0856f4ba7.tar.xz
ice-e15a4b7862cd7ecd1c14fb78155256d0856f4ba7.zip
updates to the test harness. Fixed a bug with cleanDb in IceGridAdmin.py.
Diffstat (limited to 'java/config/IceGridAdmin.py')
-rw-r--r--java/config/IceGridAdmin.py22
1 files changed, 7 insertions, 15 deletions
diff --git a/java/config/IceGridAdmin.py b/java/config/IceGridAdmin.py
index 72bb05d36d1..11e463a5e8c 100644
--- a/java/config/IceGridAdmin.py
+++ b/java/config/IceGridAdmin.py
@@ -232,20 +232,12 @@ def cleanDbDir(path):
if filename != "CVS" and filename != ".dummy":
fullpath = os.path.join(path, filename);
if os.path.isdir(fullpath):
- cleanDir(fullpath)
- os.rmdir(fullpath)
+ cleanDbDir(fullpath)
+ try:
+ os.rmdir(fullpath)
+ except OSError:
+ # This might fail if the directory is empty (because it itself is
+ # a CVS directory).
+ pass
else:
os.remove(fullpath)
-
-def cleanDir(path):
-
- files = os.listdir(path)
-
- for filename in files:
- fullpath = os.path.join(path, filename);
- if os.path.isdir(fullpath):
- cleanDir(fullpath)
- os.rmdir(fullpath)
- else:
- os.remove(fullpath)
-