From c261e20bd5391c8018df31dba18c5a3cc53e4d30 Mon Sep 17 00:00:00 2001 From: Brent Eagles Date: Wed, 9 Mar 2005 16:24:41 +0000 Subject: fixing files that weren't closed, preventing their removal --- cpp/newmakebindist.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'cpp/newmakebindist.py') diff --git a/cpp/newmakebindist.py b/cpp/newmakebindist.py index 1114678a81c..76ae9722d29 100755 --- a/cpp/newmakebindist.py +++ b/cpp/newmakebindist.py @@ -228,6 +228,7 @@ endif if line.startswith('prefix'): state = 'done' + fileinput.close() # Dependency files are all going to be bogus. The makedepend # script doesn't seem to work properly for the slice files. os.chdir("..") @@ -239,6 +240,7 @@ endif os.chdir(buildDir + "/Ice-" + version + "-demos/config") for line in fileinput.input('common.xml', True, ".bak"): print line.rstrip('\n').replace('ICE_VERSION', version) + fileinput.close() os.chdir(tcwd) shutil.rmtree(buildDir + "/demotree/" + distro, True) @@ -371,7 +373,15 @@ def getDBFiles(dbLocation): pipe_stdin.close() pipe_stdout.close() fileList.extend(lines) + if getPlatform == 'aix': + pipe_stdin, pipe_stdout = os.popen2('find lib -name "*.a" -type f') + lines = pipe_stdout.readlines() + pipe_stdin.close() + pipe_stdout.close() + fileList.extend(lines) + os.chdir(cwd) + return fileList def usage(): """Print usage/help information""" -- cgit v1.2.3