diff options
author | Benoit Foucher <benoit@zeroc.com> | 2005-11-09 12:31:52 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2005-11-09 12:31:52 +0000 |
commit | 5c95a0c53d5faf0038a722b7fac70c22cc2da36d (patch) | |
tree | a42517580844771b98105ba3b93300153f72717e /cpp/config/IceGridAdmin.py | |
parent | Fixed directory clean. (diff) | |
download | ice-5c95a0c53d5faf0038a722b7fac70c22cc2da36d.tar.bz2 ice-5c95a0c53d5faf0038a722b7fac70c22cc2da36d.tar.xz ice-5c95a0c53d5faf0038a722b7fac70c22cc2da36d.zip |
Fixed make clean.
Diffstat (limited to 'cpp/config/IceGridAdmin.py')
-rw-r--r-- | cpp/config/IceGridAdmin.py | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/cpp/config/IceGridAdmin.py b/cpp/config/IceGridAdmin.py index 6f5cc48e6c6..9c428f6d6b8 100644 --- a/cpp/config/IceGridAdmin.py +++ b/cpp/config/IceGridAdmin.py @@ -221,29 +221,24 @@ def listAdapters(): def cleanDbDir(path): - try: - cleanServerDir(os.path.join(path, "node", "servers")) - except: - pass - - try: - TestUtil.cleanDbDir(os.path.join(path, "node", "db")) - except: - pass - - try: - TestUtil.cleanDbDir(os.path.join(path, "registry")) - except: - pass + files = os.listdir(path) + for filename in files: + if filename != "CVS" and filename != ".dummy": + fullpath = os.path.join(path, filename); + if os.path.isdir(fullpath): + cleanDir(fullpath) + os.rmdir(fullpath) + else: + os.remove(fullpath) -def cleanServerDir(path): +def cleanDir(path): files = os.listdir(path) for filename in files: fullpath = os.path.join(path, filename); if os.path.isdir(fullpath): - cleanServerDir(fullpath) + cleanDir(fullpath) os.rmdir(fullpath) else: os.remove(fullpath) |