X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fqueue.py;h=bbbf1dfa1fe7949e94491361a30c573d19a692d9;hb=44f55c9ddfd13d17e725a473ca1b683dd502d155;hp=24cda1e50fd2684fc7828dfc3a59c88df44dbb7c;hpb=e52806e0ab9d6eb46644ffbca863818b59d21a15;p=dak.git diff --git a/daklib/queue.py b/daklib/queue.py index 24cda1e5..bbbf1dfa 100755 --- a/daklib/queue.py +++ b/daklib/queue.py @@ -972,9 +972,11 @@ class Upload(object): # Check for packages that have moved from one component to another entry['suite'] = suite - res = get_binary_components(self.pkg.files[f]['package'], suite, entry["architecture"], session) - if res.rowcount > 0: - entry["othercomponents"] = res.fetchone()[0] + arch_list = [entry["architecture"], 'all'] + component = get_component_by_package_suite(self.pkg.files[f]['package'], \ + [suite], arch_list = arch_list, session = session) + if component is not None: + entry["othercomponents"] = component def check_files(self, action=True): file_keys = self.pkg.files.keys()