diff --git a/Cargo.toml b/Cargo.toml index d0df116ab..4b3ee0770 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -111,7 +111,7 @@ proxmox-compression = "0.1" proxmox-acme-rs = "0.4" -proxmox-apt = "0.8.0" +proxmox-apt = "0.9.0" proxmox-async = "0.4" proxmox-openid = "0.9.0" diff --git a/src/api2/node/apt.rs b/src/api2/node/apt.rs index 0bb1b3add..2e885ecbc 100644 --- a/src/api2/node/apt.rs +++ b/src/api2/node/apt.rs @@ -554,7 +554,7 @@ pub fn add_repository(handle: APTRepositoryHandle, digest: Option) -> Re ); } - 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()?; @@ -622,7 +622,7 @@ pub fn change_repository( 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)) { if let Some(repo) = file.repositories.get_mut(index) { if let Some(enabled) = enabled { repo.set_enabled(enabled);