mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-25 06:14:18 +08:00
Add repo_builder fail safe
This commit is contained in:
parent
fec4236903
commit
c449427ec4
@ -1,4 +1,4 @@
|
||||
use anyhow::anyhow;
|
||||
use anyhow::{anyhow, bail};
|
||||
use cookbook::WALK_DEPTH;
|
||||
use cookbook::cook::ident::{get_ident, init_ident};
|
||||
use cookbook::cook::{fetch, package as cook_package};
|
||||
@ -75,6 +75,11 @@ fn publish_packages(config: &CliConfig) -> anyhow::Result<()> {
|
||||
WALK_DEPTH,
|
||||
);
|
||||
|
||||
if recipe_list.len() == 0 {
|
||||
// Fail-Safe
|
||||
bail!("Zero packages are passing the build");
|
||||
}
|
||||
|
||||
let mut appstream_sources: HashMap<String, PathBuf> = HashMap::new();
|
||||
let mut packages: BTreeMap<String, String> = BTreeMap::new();
|
||||
let mut outdated_packages: BTreeMap<String, SourceIdentifier> = BTreeMap::new();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user