[PATCH] start-sru-cycle: only start cycle for given series
Thadeu Lima de Souza Cascardo
cascardo at canonical.com
Wed Apr 5 14:09:19 UTC 2017
If a series is specified, then only start cycles for that. Otherwise, do
all series.
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo at canonical.com>
---
stable/start-sru-cycle | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/stable/start-sru-cycle b/stable/start-sru-cycle
index 2459785..daab835 100755
--- a/stable/start-sru-cycle
+++ b/stable/start-sru-cycle
@@ -38,8 +38,10 @@ class Crankers():
retval = {}
ubuntu = Ubuntu()
for series in sorted(ubuntu.index_by_series_name, reverse=True):
- record = ubuntu.index_by_series_name[series]
- if record['supported']:
+ record = ubuntu.index_by_series_name[series]
+ if record['supported']:
+ if len(s.args.series) != 0 and series not in s.args.series:
+ continue
retval[series] = {}
if 'derivative-packages' in record:
for package in record['derivative-packages']:
@@ -144,6 +146,7 @@ if __name__ == '__main__':
parser = ArgumentParser(description=app_description, epilog=app_epilog, formatter_class=RawDescriptionHelpFormatter)
parser.add_argument('cycle', metavar='cycle')
+ parser.add_argument('--series', action='append', default=[], metavar='series')
args = parser.parse_args()
--
2.9.3
More information about the kernel-team
mailing list