[releng] fedretire: Retire retirement on errors
Till Maas
till at fedoraproject.org
Wed Dec 17 21:46:11 UTC 2014
commit bf09ae650e7ec963cc6eb82831c589057e96f95a
Author: Till Maas <opensource at till.name>
Date: Wed Dec 17 22:35:19 2014 +0100
fedretire: Retire retirement on errors
scripts/fedretire | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/scripts/fedretire b/scripts/fedretire
index d88a21f..91c406b 100755
--- a/scripts/fedretire
+++ b/scripts/fedretire
@@ -59,6 +59,19 @@ if __name__ == "__main__":
if reason[-1] != "\n":
reason += "\n"
+ errors = {}
for pkg in args.pkg:
+ retired = False
for branch in args.branch:
- retire(pkg, branch, reason, dryrun=False)
+ for _ in xrange(0, 3):
+ try:
+ retire(pkg, branch, reason, dryrun=False)
+ retired = True
+ break
+ except subprocess.CalledProcessError:
+ pass
+ if not retired:
+ errors.setdefault(branch, []).append(pkg)
+
+ if errors:
+ print("Errors: " + repr(errors))
More information about the rel-eng
mailing list