fix paths so that binary packages can also be XIP

This commit is contained in:
bunnie 2023-02-11 18:42:50 +08:00
parent 4a2234f539
commit bc65b88154

View file

@ -446,7 +446,8 @@ impl Builder {
let mut found = false;
for app in self.apps.iter() {
if let Some(n) = &app.name() {
if Path::new(service).file_name().unwrap_or_default().to_str().unwrap_or_default() == n {
if Path::new(service).file_name().unwrap_or_default().to_str().unwrap_or_default() ==
Path::new(n).file_name().unwrap_or_default().to_str().unwrap_or_default() {
if app.is_xip() {
inif.push(service.to_string());
} else {
@ -462,7 +463,8 @@ impl Builder {
}
for serv in self.services.iter() {
if let Some(n) = &serv.name() {
if Path::new(service).file_name().unwrap_or_default().to_str().unwrap_or_default() == n {
if Path::new(service).file_name().unwrap_or_default().to_str().unwrap_or_default() ==
Path::new(n).file_name().unwrap_or_default().to_str().unwrap_or_default() {
if serv.is_xip() {
inif.push(service.to_string());
} else {