diff options
author | Mikhail Zabaluev <mikhail.zabaluev@gmail.com> | 2015-11-01 19:18:37 +0200 |
---|---|---|
committer | Mikhail Zabaluev <mikhail.zabaluev@gmail.com> | 2015-11-01 20:02:46 +0200 |
commit | 1754b3c3011b3795a0bff03bdfdc30c7418b1a62 (patch) | |
tree | acc299f4da8cfc7b927601b0268f5a40c61da771 /giscanner/scannermain.py | |
parent | cb1fabbd3641cfebf7d493d6eca73eab3d2027a2 (diff) | |
download | gobject-introspection-1754b3c3011b3795a0bff03bdfdc30c7418b1a62.tar.gz |
Don't lose output silently when overwrite of the output file is denied
If the move resulted in EPERM, discard the temporary output file, but
raise the error so that the tool exits with a nonzero status.
https://bugzilla.gnome.org/show_bug.cgi?id=757442
Diffstat (limited to 'giscanner/scannermain.py')
-rwxr-xr-x | giscanner/scannermain.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py index 628528f8..42466b90 100755 --- a/giscanner/scannermain.py +++ b/giscanner/scannermain.py @@ -465,7 +465,6 @@ def write_output(data, options): except OSError as e: if e.errno == errno.EPERM: os.unlink(main_f_name) - return 0 raise return 0 else: |