aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/python/files/2.6/08_all_non-zero_exit_status_on_failure.patch')
-rw-r--r--dev-lang/python/files/2.6/08_all_non-zero_exit_status_on_failure.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-lang/python/files/2.6/08_all_non-zero_exit_status_on_failure.patch b/dev-lang/python/files/2.6/08_all_non-zero_exit_status_on_failure.patch
new file mode 100644
index 0000000..8d0ebe8
--- /dev/null
+++ b/dev-lang/python/files/2.6/08_all_non-zero_exit_status_on_failure.patch
@@ -0,0 +1,31 @@
+https://bugs.gentoo.org/show_bug.cgi?id=281968
+http://bugs.python.org/issue6731
+
+--- setup.py
++++ setup.py
+@@ -31,6 +31,8 @@
+ disable_ssl = 0
+
+
++exit_status = 0
++
+ def add_dir_to_list(dirlist, dir):
+ """Add the directory 'dir' to the list 'dirlist' (at the front) if
+ 1) 'dir' is not already in 'dirlist'
+@@ -279,6 +281,8 @@
+ print
+
+ if self.failed:
++ global exit_status
++ exit_status = 1
+ failed = self.failed[:]
+ print
+ print "Failed to build these modules:"
+@@ -2050,6 +2054,7 @@
+ 'Tools/scripts/2to3',
+ 'Lib/smtpd.py']
+ )
++ sys.exit(exit_status)
+
+ # --install-platlib
+ if __name__ == '__main__':