From 1211d3c599cbe0635771442dc4ad088b571f9c31 Mon Sep 17 00:00:00 2001 From: Jamo Luhrsen Date: Thu, 19 Jan 2017 14:29:11 -0800 Subject: [PATCH] fix argument processing for projects Change-Id: I5226bed49263e935e9afc8800d4e405cc8748836 Signed-off-by: Jamo Luhrsen --- tools/distchanges/changes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/distchanges/changes.py b/tools/distchanges/changes.py index 69feb017a2..29825a09da 100644 --- a/tools/distchanges/changes.py +++ b/tools/distchanges/changes.py @@ -76,7 +76,6 @@ class Changes: self.project_names = project_names self.remote_url = remote_url self.verbose = verbose - self.set_projects(project_names) @staticmethod def pretty_print_gerrits(project, gerrits): @@ -320,10 +319,11 @@ class Changes: self.distro_path = options.distro_path self.distro_url = options.distro_url self.limit = options.limit - self.project_names = options.projects self.qlimit = options.qlimit self.remote_url = options.remote_url self.verbose = options.verbose + if options.projects != self.PROJECT_NAMES: + self.project_names = options.projects.split(',') # TODO: add check to verify that the remote can be reached, # though the first gerrit query will fail anyways -- 2.36.6