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],