from daklib.packagelist import PackageList
import daklib.announce
+import daklib.utils
# Globals
Options = None
return get_mapped_component(component_name, session=session)
def is_debug_binary(db_binary):
- return db_binary.proxy['Section'] == "debug"
+ return daklib.utils.is_in_debug_section(db_binary.proxy)
def has_debug_binaries(upload):
return any((is_debug_binary(x) for x in upload.binaries))
if debug_suite is not None and is_debug_binary(db_binary):
copy_to_suite = debug_suite
- # build queues may miss the source package if this is a
- # binary-only upload.
- if suite != upload.target_suite:
+ # build queues and debug suites may miss the source package
+ # if this is a binary-only upload.
+ if copy_to_suite != upload.target_suite:
transaction.copy_source(
db_binary.source,
copy_to_suite,
extra_archives=[upload.target_suite.archive],
)
+ suite.update_last_changed()
+
# Copy .changes if needed
if upload.target_suite.copychanges:
src = os.path.join(upload.policy_queue.path, upload.changes.changesname)