mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-28 23:58:42 +08:00
Warn and create source dir if no source provided
This commit is contained in:
parent
e8178a7123
commit
561204cb56
@ -364,10 +364,11 @@ fi"#);
|
||||
// Local Sources
|
||||
None => {
|
||||
if ! source_dir.is_dir() {
|
||||
return Err(format!(
|
||||
"Recipe without source section expected source dir at '{}'",
|
||||
eprintln!(
|
||||
"WARNING: Recipe without source section expected source dir at '{}'",
|
||||
source_dir.display(),
|
||||
))
|
||||
);
|
||||
create_dir(&source_dir)?;
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user