diff --git a/common/src/apt/repositories.rs b/common/src/apt/repositories.rs index 26a20e4..e162487 100644 --- a/common/src/apt/repositories.rs +++ b/common/src/apt/repositories.rs @@ -104,7 +104,7 @@ pub mod export { ); } - if let Some(file) = files.iter_mut().find(|file| file.path == path) { + if let Some(file) = files.iter_mut().find(|file| file.path.as_ref() == Some(&path)) { file.repositories.push(repo); file.write()?; @@ -145,7 +145,7 @@ pub mod export { bail!("unable to parse file {} - {}", error.path, error.error); } - if let Some(file) = files.iter_mut().find(|file| file.path == path) { + if let Some(file) = files.iter_mut().find(|file| file.path.as_ref() == Some(&path.to_string())) { if let Some(repo) = file.repositories.get_mut(index) { if let Some(enabled) = options.enabled { repo.set_enabled(enabled);