[gobject-introspection] Don't lose output silently when overwrite of the output file is denied



commit 1754b3c3011b3795a0bff03bdfdc30c7418b1a62
Author: Mikhail Zabaluev <mikhail zabaluev gmail com>
Date:   Sun Nov 1 19:18:37 2015 +0200

    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

 giscanner/scannermain.py |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
index 628528f..42466b9 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:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]