[releng] block_retired: Block packages individually

Till Maas till at fedoraproject.org
Sat May 9 06:47:44 UTC 2015


commit d1283eb65a09a260b6364894344174d9f28d0870
Author: Till Maas <opensource at till.name>
Date:   Sat May 9 08:03:40 2015 +0200

    block_retired: Block packages individually
    
    Signed-off-by: Till Maas <opensource at till.name>

 scripts/block_retired.py |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/scripts/block_retired.py b/scripts/block_retired.py
index 64d7638..6a79d7c 100755
--- a/scripts/block_retired.py
+++ b/scripts/block_retired.py
@@ -247,9 +247,11 @@ def block_all_retired(branches=RETIRING_BRANCHES, staging=False):
             if pkg in allunblocked:
                 unblocked.append(pkg)
 
-        if unblocked:
-            errors = block_package(unblocked, branch, staging=staging)
-            log.info("Blocked packages %s on %s", unblocked, branch)
+        # Block packages individually so that errors with one package does not
+        # stop the other packages to be blocked
+        for package in unblocked:
+            errors = block_package(package, branch, staging=staging)
+            log.info("Blocked %s on %s", package, branch)
             for error in errors:
                 log.error(error)
 


More information about the rel-eng mailing list