[kteam-tools][PATCHv2 1/3] create-stable-tracker: fix series_name comparison for series nomination
Kamal Mostafa
kamal at canonical.com
Mon Aug 27 17:30:01 UTC 2018
The test determining which series to nominate never worked, because
series_name.title() yields a capitalized series name ("Bionic") but the
series_collection.name values are lowercase ("bionic"). Fix that by
testing against just 'series_name' which yields the lowercase name.
Signed-off-by: Kamal Mostafa <kamal at canonical.com>
---
stable/create-stable-tracker | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/stable/create-stable-tracker b/stable/create-stable-tracker
index 8b56fc9..3dd03ac 100755
--- a/stable/create-stable-tracker
+++ b/stable/create-stable-tracker
@@ -195,7 +195,7 @@ class CreateTrackingBug(StdApp):
ubuntu = lp.distributions["ubuntu"]
sc = ubuntu.series_collection
for s in sc:
- if s.name == series_name.title():
+ if s.name == series_name:
nomination = bug.lpbug.addNomination(target=s)
if nomination.canApprove():
nomination.approve()
--
2.7.4
More information about the kernel-team
mailing list