GNOME Bugzilla – Bug 789637
glib-mkenums: Fails when --ouput file does not exist
Last modified: 2017-10-31 15:23:44 UTC
glib-mkenums attempts to unlink a file that may not exist exist when used with --output: if tmpfile is not None: tmpfilename = tmpfile.name tmpfile.close() os.unlink(options.output) os.rename(tmpfilename, options.output) This raises an exception when the file can't be found.
Created attachment 362502 [details] [review] mkenums: Don't raise when unlinking a file that doesn't exist
Review of attachment 362502 [details] [review]: Looks good to me. Thanks for the patch.