(&self)
| 1397 | } |
| 1398 | |
| 1399 | fn get_normalized_arch(&self) -> Result<&str, Error> { |
| 1400 | let arch = self.get_arch(); |
| 1401 | if X32.is(arch) { |
| 1402 | Ok(ARCH_X86) |
| 1403 | } else if X64.is(arch) { |
| 1404 | Ok(ARCH_X64) |
| 1405 | } else if ARM64.is(arch) { |
| 1406 | Ok(ARCH_ARM64) |
| 1407 | } else if ARMV7.is(arch) { |
| 1408 | Ok(ARCH_ARM7L) |
| 1409 | } else { |
| 1410 | let err_msg = format!("Unsupported architecture: {}", arch); |
| 1411 | self.get_logger().warn(err_msg.clone()); |
| 1412 | Err(anyhow!(err_msg)) |
| 1413 | } |
| 1414 | } |
| 1415 | |
| 1416 | fn set_arch(&mut self, arch: String) { |
| 1417 | if !arch.is_empty() { |
no test coverage detected