tags 595177 + patch thanks Hi there. This bug seems to be a problem with a patch only applied in Debian set_exit_status.diff
I've attached a patch to remove this patch and update the manpage, since I could not reproduce the bug it was originally fixing (467135) any more. Please consider applying this patch or at least correcting set_exit_status.diff to: return warnings > 0 Have a nice day, Johannes
diff -Nru pyflakes-0.5.0/debian/patches/series pyflakes-0.5.0/debian/patches/series --- pyflakes-0.5.0/debian/patches/series 2009-01-29 23:48:18.000000000 +0100 +++ pyflakes-0.5.0/debian/patches/series 2012-03-28 01:29:09.000000000 +0200 @@ -1,4 +1,3 @@ add_main_function.diff always_close_fd.diff -set_exit_status.diff check_encoding_errors.diff diff -Nru pyflakes-0.5.0/debian/patches/set_exit_status.diff pyflakes-0.5.0/debian/patches/set_exit_status.diff --- pyflakes-0.5.0/debian/patches/set_exit_status.diff 2011-09-11 19:38:49.000000000 +0200 +++ pyflakes-0.5.0/debian/patches/set_exit_status.diff 1970-01-01 01:00:00.000000000 +0100 @@ -1,22 +0,0 @@ -# fixed duplicated output - -Index: pyflakes-0.5.0/bin/pyflakes -=================================================================== ---- pyflakes-0.5.0.orig/bin/pyflakes 2011-09-11 19:38:35.005013432 +0200 -+++ pyflakes-0.5.0/bin/pyflakes 2011-09-11 19:38:45.116330262 +0200 -@@ -2,4 +2,4 @@ - - import sys - from pyflakes.scripts.pyflakes import main --main(sys.argv[1:]) -+sys.exit(main(sys.argv[1:])) -Index: pyflakes-0.5.0/pyflakes/scripts/pyflakes.py -=================================================================== ---- pyflakes-0.5.0.orig/pyflakes/scripts/pyflakes.py 2011-09-11 19:38:45.096331615 +0200 -+++ pyflakes-0.5.0/pyflakes/scripts/pyflakes.py 2011-09-11 19:38:45.120329992 +0200 -@@ -90,4 +90,4 @@ - else: - warnings += check(sys.stdin.read(), '<stdin>') - -- raise SystemExit(warnings > 0) -+ return warnings diff -Nru pyflakes-0.5.0/debian/pyflakes.1 pyflakes-0.5.0/debian/pyflakes.1 --- pyflakes-0.5.0/debian/pyflakes.1 2011-06-10 17:09:11.000000000 +0200 +++ pyflakes-0.5.0/debian/pyflakes.1 2012-03-28 01:33:42.000000000 +0200 @@ -26,9 +26,8 @@ Found errors including compile or encoding errors, are printed on standard error. .SH "EXIT STATUS" -The exit status is 0 when no warnings or errors are found. When errors are -found the exit status is 2. When warnings (but no errors) are found the -exit status is 1. +The exit status is 0 when no warnings or errors are found. Otherwise the exit +status is 1. .SH "AUTHOR" This manual page was originally written by Bastian Kleineidam <calvin@debian\.org> for the Debian distribution of pyflakes (but can be used by others)\.