Make appstream env consistent

This commit is contained in:
Wildan M 2025-11-21 00:47:50 -08:00
parent f676e25f80
commit 356ef86085
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ endif
endif
ifeq ($(REPO_APPSTREAM),1)
export COOKBOOK_APPSTREAM="1"
export COOKBOOK_APPSTREAM=true
endif
ifeq ($(REPO_NONSTOP),1)
export COOKBOOK_NONSTOP=true

View File

@ -90,7 +90,7 @@ fn publish_packages(recipe_list: Vec<String>, repo_dir: String) -> anyhow::Resul
}
// === 2. Optional AppStream generation ===
if env::var("COOKBOOK_APPSTREAM").ok().as_deref() == Some("1") {
if env::var("COOKBOOK_APPSTREAM").ok().as_deref() == Some("true") {
eprintln!("\x1b[01;38;5;155mrepo - generating appstream data\x1b[0m");
let root = env::var("ROOT").unwrap_or_else(|_| ".".into());