X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Farchive.py;h=0174bea9f815cd7d70bf2f2114b19bf759be5e67;hb=9914190d8f003e8bbf8a0504a954c25600516299;hp=50a568a5b650cc5c85baa230fcdb3dbaf642da9f;hpb=b5fce56d397a377819dc3ff5962ad7acf366398d;p=dak.git diff --git a/daklib/archive.py b/daklib/archive.py index 50a568a5..0174bea9 100644 --- a/daklib/archive.py +++ b/daklib/archive.py @@ -780,18 +780,25 @@ class ArchiveUpload(object): def _check_new_binary_overrides(self, suite): new = False - - binaries = self.changes.binaries source = self.changes.source + if source is not None and not source.package_list.fallback: packages = source.package_list.packages_for_suite(suite) binaries = [ entry for entry in packages ] - - for b in binaries: - override = self._binary_override(suite, b) - if override is None: - self.warnings.append('binary:{0} is NEW.'.format(b.name)) - new = True + for b in binaries: + override = self._binary_override(suite, b) + if override is None: + self.warnings.append('binary:{0} is NEW.'.format(b.name)) + new = True + else: + binaries = self.changes.binaries + for b in binaries: + if utils.is_in_debug_section(b.control) and suite.debug_suite is not None: + continue + override = self._binary_override(suite, b) + if override is None: + self.warnings.append('binary:{0} is NEW.'.format(b.name)) + new = True return new