X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Farchive.py;fp=daklib%2Farchive.py;h=fa67f10e2f2ff64f69cf48e0e7257a8af6a8b019;hb=64d9673cf98a8adb330f5de673c471d55999457c;hp=b77bfa0bc076c1a2bfe80f566763736040783217;hpb=6a750dc9d7437841f93a8a94bd7cbccefc86bcf2;p=dak.git diff --git a/daklib/archive.py b/daklib/archive.py index b77bfa0b..fa67f10e 100644 --- a/daklib/archive.py +++ b/daklib/archive.py @@ -1025,14 +1025,33 @@ class ArchiveUpload(object): source = self.changes.source if source is not None: component = source_component_func(source) - db_source = self.transaction.install_source(self.directory, source, suite, component, changed_by, fingerprint=self.fingerprint) + db_source = self.transaction.install_source( + self.directory, + source, + suite, + component, + changed_by, + fingerprint=self.fingerprint + ) else: db_source = None db_binaries = [] for binary in self.changes.binaries: + copy_to_suite = suite + if binary.is_debug() and suite.debug_suite is not None: + copy_to_suite = suite.debug_suite + component = binary_component_func(binary) - db_binary = self.transaction.install_binary(self.directory, binary, suite, component, fingerprint=self.fingerprint, source_suites=source_suites, extra_source_archives=extra_source_archives) + db_binary = self.transaction.install_binary( + self.directory, + binary, + copy_to_suite, + component, + fingerprint=self.fingerprint, + source_suites=source_suites, + extra_source_archives=extra_source_archives + ) db_binaries.append(db_binary) if suite.copychanges: