(&self)
| 1386 | } |
| 1387 | |
| 1388 | fn get_normalized_arch(&self) -> Result<&str, Error> { |
| 1389 | let arch = self.get_arch(); |
| 1390 | if X32.is(arch) { |
| 1391 | Ok(ARCH_X86) |
| 1392 | } else if X64.is(arch) { |
| 1393 | Ok(ARCH_X64) |
| 1394 | } else if ARM64.is(arch) { |
| 1395 | Ok(ARCH_ARM64) |
| 1396 | } else if ARMV7.is(arch) { |
| 1397 | Ok(ARCH_ARM7L) |
| 1398 | } else { |
| 1399 | let err_msg = format!("Unsupported architecture: {}", arch); |
| 1400 | self.get_logger().warn(err_msg.clone()); |
| 1401 | Err(anyhow!(err_msg)) |
| 1402 | } |
| 1403 | } |
| 1404 | |
| 1405 | fn set_arch(&mut self, arch: String) { |
| 1406 | if !arch.is_empty() { |
no test coverage detected