From: david-sarah Date: Tue, 3 Aug 2010 09:48:12 +0000 (-0700) Subject: misc/build_helpers/show-tool-versions.py: avoid error message when 'as -version'... X-Git-Tag: allmydata-tahoe-1.8.0b2~33 X-Git-Url: https://git.rkrishnan.org/Site/Content/Exhibitors/index.php?a=commitdiff_plain;h=cd7fb133b7021991b7918822238559070218fb1a;p=tahoe-lafs%2Ftahoe-lafs.git misc/build_helpers/show-tool-versions.py: avoid error message when 'as -version' does not create a.out. --- 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