提交 99b369ad 编写于 作者: J Joerg Jaspert

Merge remote-tracking branch 'nthykier/auto-decruft'

* nthykier/auto-decruft:
  rm: Only add component restriction if there is a component
......@@ -380,7 +380,8 @@ def remove(session, reason, suites, removals,
raise ValueError("component '%s' not recognised." % componentname)
else:
component_ids_list.append(component.component_id)
con_components = "AND component IN (%s)" % ", ".join([str(i) for i in component_ids_list])
if component_ids_list:
con_components = "AND component IN (%s)" % ", ".join([str(i) for i in component_ids_list])
for i in removals:
package = i[0]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册