From e91abf42636c3d741ec8303b1d828ae21b533649 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Wed, 10 Sep 2025 15:26:26 +0700 Subject: [PATCH] Allow missing recipe in repo builder --- src/bin/repo_builder.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/repo_builder.rs b/src/bin/repo_builder.rs index d903bfd1..760fc33c 100644 --- a/src/bin/repo_builder.rs +++ b/src/bin/repo_builder.rs @@ -59,6 +59,11 @@ fn main() -> Result<(), Box> { let toml_src = stage_dir.with_extension("toml"); let toml_dst = repo_path.join(format!("{}.toml", recipe)); + if !fs::exists(&toml_src)? { + eprintln!("recipe {} is missing stage.toml", recipe); + continue; + } + if is_newer(&toml_src, &toml_dst) { eprintln!("\x1b[01;38;5;155mrepo - publishing {}\x1b[0m", recipe); if fs::exists(&pkgar_src)? {