From bbfc338734a87a2db9bf8a4bd31efcf8e9abe337 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Sun, 14 Jun 2026 16:03:52 +1000 Subject: [PATCH] Fix regression that enforced merge_simple_packages --- enroll/harvest.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/enroll/harvest.py b/enroll/harvest.py index 9e5d320..a9d5526 100644 --- a/enroll/harvest.py +++ b/enroll/harvest.py @@ -367,6 +367,10 @@ def _role_name_from_unit(unit: str) -> str: return _safe_name(base) +def _role_name_from_pkg(pkg: str) -> str: + return _safe_name(pkg) + + def _copy_into_bundle( bundle_dir: str, role_name: str, abs_path: str, src_rel: str ) -> None: @@ -1644,6 +1648,8 @@ def harvest( manual_pkgs_skipped.append(pkg) continue + role = _role_name_from_pkg(pkg) + notes: List[str] = [] excluded: List[ExcludedFile] = [] managed: List[ManagedFile] = []