Allow missing recipe in repo builder

This commit is contained in:
Wildan M 2025-09-10 15:26:26 +07:00
parent 0e3209c1ad
commit e91abf4263

View File

@ -59,6 +59,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
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)? {