From aec31c38b8ba18616105eefa5ef834992e58d1aa Mon Sep 17 00:00:00 2001 From: dilawar Date: Thu, 10 Sep 2026 07:46:14 +0530 Subject: [PATCH] fix(packages): implement PackageRecipe.to_dict() to resolve index sync AttributeError --- ebuild/packages/recipe.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ebuild/packages/recipe.py b/ebuild/packages/recipe.py index 6cbdb38..81799e2 100644 --- a/ebuild/packages/recipe.py +++ b/ebuild/packages/recipe.py @@ -89,6 +89,12 @@ def validate(self) -> None: f"Must be one of {self.VALID_BUILD_SYSTEMS}." ) + def to_dict(self) -> Dict[str, Any]: + """Convert recipe back to dictionary representation.""" + from dataclasses import asdict + return asdict(self) + + def _parse_string_list( raw: Dict[str, Any],