SHA256
fix: atombuild switch is not effect
Signed-off-by: sisungo <[email protected]>
This commit is contained in:
+2
-7
@@ -115,7 +115,7 @@ async fn handle_build(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut cmd = std::process::Command::new("./x");
|
let mut cmd = Command::new("./x");
|
||||||
if req.atombuild {
|
if req.atombuild {
|
||||||
cmd.arg("--atombuild");
|
cmd.arg("--atombuild");
|
||||||
}
|
}
|
||||||
@@ -129,12 +129,7 @@ async fn handle_build(
|
|||||||
let log_url = format!("{}/api/builds/{}/log", state.config.master_url, req.build_id);
|
let log_url = format!("{}/api/builds/{}/log", state.config.master_url, req.build_id);
|
||||||
let client = reqwest::Client::new();
|
let client = reqwest::Client::new();
|
||||||
|
|
||||||
let mut child = match Command::new("./x")
|
let mut child = match cmd
|
||||||
.arg("--atombuild")
|
|
||||||
.arg("--target").arg(&req.target)
|
|
||||||
.arg("build").arg(&req.package_name)
|
|
||||||
.current_dir(&ports_path)
|
|
||||||
.env("PYTHONUNBUFFERED", "1")
|
|
||||||
.stdout(std::process::Stdio::piped())
|
.stdout(std::process::Stdio::piped())
|
||||||
.stderr(std::process::Stdio::piped())
|
.stderr(std::process::Stdio::piped())
|
||||||
.spawn()
|
.spawn()
|
||||||
|
|||||||
Reference in New Issue
Block a user