X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Farchive.py;h=e3bf91267e14f0d9ff64b2067abf9d41ae4c2a4f;hb=283a1be8a19c9f89987dd96ec6247217973ac5a7;hp=b77bfa0bc076c1a2bfe80f566763736040783217;hpb=6be73ea6efc53d9358f08a3bd1fd71908b04b898;p=dak.git diff --git a/daklib/archive.py b/daklib/archive.py index b77bfa0b..e3bf9126 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 utils.is_in_debug_section(binary.control) 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: