]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
misc/build_helpers/show-tool-versions.py: avoid error message when 'as -version'...
authordavid-sarah <david-sarah@jacaranda.org>
Tue, 3 Aug 2010 09:48:12 +0000 (02:48 -0700)
committerdavid-sarah <david-sarah@jacaranda.org>
Tue, 3 Aug 2010 09:48:12 +0000 (02:48 -0700)
misc/build_helpers/show-tool-versions.py

index 8b0ffc2b97cbf62b1e5f4b3b427f13dbddb71a9c..5d33ca225c9823357c774aa34701e9f72bd2a218 100644 (file)
@@ -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