(&self)
| 1368 | } |
| 1369 | |
| 1370 | fn get_normalized_arch(&self) -> Result<&str, Error> { |
| 1371 | let arch = self.get_arch(); |
| 1372 | if X32.is(arch) { |
| 1373 | Ok(ARCH_X86) |
| 1374 | } else if X64.is(arch) { |
| 1375 | Ok(ARCH_X64) |
| 1376 | } else if ARM64.is(arch) { |
| 1377 | Ok(ARCH_ARM64) |
| 1378 | } else if ARMV7.is(arch) { |
| 1379 | Ok(ARCH_ARM7L) |
| 1380 | } else { |
| 1381 | let err_msg = format!("Unsupported architecture: {}", arch); |
| 1382 | self.get_logger().warn(err_msg.clone()); |
| 1383 | Err(anyhow!(err_msg)) |
| 1384 | } |
| 1385 | } |
| 1386 | |
| 1387 | fn set_arch(&mut self, arch: String) { |
| 1388 | if !arch.is_empty() { |
no test coverage detected