[releng] fedretire: Allow to specify multiple branches
Till Maas
till at fedoraproject.org
Wed Nov 19 21:31:07 UTC 2014
commit 5e388e2e3b0f4f151d54c5878996790b952aa692
Author: Till Maas <opensource at till.name>
Date: Wed Nov 19 22:30:35 2014 +0100
fedretire: Allow to specify multiple branches
scripts/fedretire | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/scripts/fedretire b/scripts/fedretire
index 9b516e8..94618d5 100755
--- a/scripts/fedretire
+++ b/scripts/fedretire
@@ -33,7 +33,7 @@ def retire(pkg, branch, reason, dryrun=False):
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Helper to retire packages")
- parser.add_argument("--branch", default="master",
+ parser.add_argument("--branch", default="master", nargs="*",
choices=["master", "f21", "epel7", "el6", "el5"])
parser.add_argument("--reasonfile", default=None)
parser.add_argument("--reason", default=None)
@@ -59,4 +59,5 @@ if __name__ == "__main__":
reason += "\n"
for pkg in args.pkg:
- retire(pkg, args.branch, reason, dryrun=False)
+ for branch in args.branch:
+ retire(pkg, branch, reason, dryrun=False)
More information about the rel-eng
mailing list