X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Frm.py;fp=daklib%2Frm.py;h=4019a8181164aec339eaea4c7a4239dbdf2d0112;hb=dcb3f2496f145c8f606c62f1038f4c3708c86f7c;hp=ac966198deee4b2a553b71f34d24da6df060b43e;hpb=b16f222f77203d0860a7745fd3c39b24fe870a99;p=dak.git diff --git a/daklib/rm.py b/daklib/rm.py index ac966198..4019a818 100644 --- a/daklib/rm.py +++ b/daklib/rm.py @@ -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]