Don't remove .c file for dumper binary
authorOwen W. Taylor <otaylor@fishsoup.net>
Sun, 3 Jan 2010 15:50:58 +0000 (10:50 -0500)
committerColin Walters <walters@verbum.org>
Tue, 12 Jan 2010 21:22:26 +0000 (16:22 -0500)
We're going to remove the entire temporary directory,
so there's no point in explicitly removing just the .c file
we create; leaving the .c file behind makes it easier to debug
problems.

https://bugzilla.gnome.org/show_bug.cgi?id=605966

giscanner/dumper.py

index 460054c..14540d9 100644 (file)
@@ -133,8 +133,6 @@ class DumpCompiler(object):
         except LinkerError, e:
             raise SystemExit('ERROR: ' + str(e))
 
-        os.unlink(c_path)
-
         return IntrospectionBinary([bin_path], self._tmpdir)
 
     # Private API