[Reproducible-commits] [debbindiff] 01/02: Revert "debbindiff.py: simplify exit code calculation"

Jérémy Bobbio lunar at moszumanska.debian.org
Sat Feb 14 22:22:21 UTC 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository debbindiff.

commit 3e6b3fd47b6a83991ff9edc8be372738b2369230
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sat Feb 14 20:54:16 2015 +0000

    Revert "debbindiff.py: simplify exit code calculation"
    
    This reverts commit da146535f5d8af3e9b5685dbf597a9f4666ec1c1.
    
    The exit code is part of the external interface of debbindiff. The code needs
    be clear about what the exit code is in a given situation. The reverted change
    obfuscated the actual exit code.
---
 debbindiff.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debbindiff.py b/debbindiff.py
index 807ec39..15de0ab 100755
--- a/debbindiff.py
+++ b/debbindiff.py
@@ -62,7 +62,9 @@ def main():
             print(*args, **kwargs)
         output_html(differences, css_url=parsed_args.css_url, print_func=print_func,
                     max_page_size=parsed_args.max_report_size)
-    return bool(differences)
+    if len(differences) > 0:
+        return 1
+    return 0
 
 if __name__ == '__main__':
     sys.exit(main())

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debbindiff.git



More information about the Reproducible-commits mailing list