better logging for cross
Some checks failed
CI / build (pull_request) Failing after 31m38s

This commit is contained in:
2025-12-25 12:47:01 +01:00
parent 4e09514d22
commit 10f343f92f

View File

@@ -149,6 +149,7 @@ pub fn setup_environment(
env: &mut HashMap<String, String>,
arch: &str,
) -> Result<(), Box<dyn Error>> {
log::debug!("Running 'dpkg-architecture -a{}'", arch);
let dpkg_architecture = String::from_utf8(
context::current()
.command("dpkg-architecture")
@@ -156,6 +157,7 @@ pub fn setup_environment(
.output()?
.stdout,
)?;
log::debug!("dpkg-architecture done");
let env_var_regex = regex::Regex::new(r"(?<key>.*)=(?<value>.*)").unwrap();
for l in dpkg_architecture.lines() {
let capture = env_var_regex.captures(l).unwrap();