From cd7fb133b7021991b7918822238559070218fb1a Mon Sep 17 00:00:00 2001 From: david-sarah Date: Tue, 3 Aug 2010 02:48:12 -0700 Subject: [PATCH] misc/build_helpers/show-tool-versions.py: avoid error message when 'as -version' does not create a.out. --- misc/build_helpers/show-tool-versions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/build_helpers/show-tool-versions.py b/misc/build_helpers/show-tool-versions.py index 8b0ffc2b..5d33ca22 100644 --- a/misc/build_helpers/show-tool-versions.py +++ b/misc/build_helpers/show-tool-versions.py @@ -62,7 +62,8 @@ def print_as_ver(): stderr=subprocess.PIPE).communicate()[1] print print 'as: ' + res.replace("\n", " ") - os.remove('a.out') + if os.path.exists('a.out'): + os.remove('a.out') except EnvironmentError, le: sys.stderr.write("Got exception invoking '%s': %s\n" % ('as', le,)) pass -- 2.45.2