[Reproducible-commits] [misc] 02/02: Load and setup reproducible status centrally rather than deep in the loop.

Chris Lamb chris at chris-lamb.co.uk
Thu Aug 11 22:50:54 UTC 2016


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

lamby pushed a commit to branch master
in repository misc.

commit 6a591a377746c9fd6b909b6602405ca80efd68fa
Author: Chris Lamb <lamby at debian.org>
Date:   Thu Aug 11 23:50:50 2016 +0100

    Load and setup reproducible status centrally rather than deep in the loop.
---
 filter-packages | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/filter-packages b/filter-packages
index 45b02d6..e919591 100755
--- a/filter-packages
+++ b/filter-packages
@@ -19,8 +19,6 @@ SHOW = {
 }
 
 def main():
-    status = None
-
     parser = optparse.OptionParser(usage='%prog [options] [packages.yml]')
     parser.add_option('--issues', dest='issues', default=None,
         help="only print packages with comma-separated issues ISSUES")
@@ -54,6 +52,11 @@ def main():
     if options.without_issues is not None:
         options.without_issues = set(options.without_issues.split(','))
 
+    status = {}
+    if options.status:
+        from rblib import remote
+        status = remote.load_reproducible_status()
+
     filename = args[0] if len(args) == 1 else \
         join(dirname(dirname(abspath(__file__))), 'notes', 'packages.yml')
 
@@ -80,10 +83,6 @@ def main():
             continue
 
         if options.filter_ftbfs:
-            if not status:
-                from rblib import remote
-                status = remote.load_reproducible_status()
-
             if status.get(x, {}).get('status', None) != 'FTBFS':
                 continue
 

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



More information about the Reproducible-commits mailing list