[Reproducible-commits] [debbindiff] 02/03: debbindiff.py: simplify exit code calculation

Chris Lamb lamby at moszumanska.debian.org
Sat Feb 14 11:09:01 UTC 2015


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

lamby pushed a commit to branch master
in repository debbindiff.

commit da146535f5d8af3e9b5685dbf597a9f4666ec1c1
Author: Chris Lamb <lamby at debian.org>
Date:   Sat Feb 14 11:06:47 2015 +0000

    debbindiff.py: simplify exit code calculation
---
 debbindiff.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/debbindiff.py b/debbindiff.py
index 15de0ab..807ec39 100755
--- a/debbindiff.py
+++ b/debbindiff.py
@@ -62,9 +62,7 @@ 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)
-    if len(differences) > 0:
-        return 1
-    return 0
+    return bool(differences)
 
 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