Skip to content

Commit 30000c0

Browse files
committed
archive: Properly copy overrides from debug repo when copying packages
1 parent fb16e07 commit 30000c0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/laniakea/archive/manage.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
split_epoch,
3535
package_mark_published,
3636
publish_package_metadata,
37+
repo_suite_settings_for_debug,
3738
)
3839

3940

@@ -767,6 +768,9 @@ def copy_binary_package_override(
767768
):
768769
"""Copy override information for a specific binary package from one suite to another.
769770
771+
This function can only act on suites that are in the same repository! (with the only
772+
exception being connected debug repositories, which are handled implicitly)
773+
770774
:param session: A SQLAlchemy session
771775
:param bpkg: Binary package the override information belongs to.
772776
:param repo: Repository to act on.
@@ -877,7 +881,8 @@ def copy_binary_package(
877881
)
878882
if dest_debug_suite not in bpkg.suites:
879883
bpkg.suites.append(dest_debug_suite)
880-
copy_binary_package_override(session, bpkg, dest_rss.repo, dest_debug_suite, overrides_from_suite)
884+
rss_debug = repo_suite_settings_for_debug(session, dest_rss)
885+
copy_binary_package_override(session, bpkg, rss_debug.repo, dest_debug_suite, overrides_from_suite)
881886
log.info(
882887
'Copied dbgsym package %s:%s/%s into %s', bpkg.repo.name, bpkg.name, bpkg.version, dest_debug_suite.name
883888
)

0 commit comments

Comments
 (0)